diff options
| author | kamtschatka <simon.schatka@gmx.at> | 2024-07-21 23:08:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-21 22:08:06 +0100 |
| commit | c5c62de28944077004f01960ee9f7e12b7d26c2c (patch) | |
| tree | a31c88ff70938c4afe062afbdb078ea3cb83df9a /packages/shared/queues.ts | |
| parent | 4c23ea931dc01e0d99869eb518c85f891d006baa (diff) | |
| download | karakeep-c5c62de28944077004f01960ee9f7e12b7d26c2c.tar.zst | |
fix: async/await issues with the new queue (#319)
Diffstat (limited to 'packages/shared/queues.ts')
| -rw-r--r-- | packages/shared/queues.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/shared/queues.ts b/packages/shared/queues.ts index 8747fb3f..756f095d 100644 --- a/packages/shared/queues.ts +++ b/packages/shared/queues.ts @@ -64,15 +64,15 @@ export const SearchIndexingQueue = new SqliteQueue<ZSearchIndexingRequest>( }, ); -export function triggerSearchReindex(bookmarkId: string) { - SearchIndexingQueue.enqueue({ +export async function triggerSearchReindex(bookmarkId: string) { + await SearchIndexingQueue.enqueue({ bookmarkId, type: "index", }); } -export function triggerSearchDeletion(bookmarkId: string) { - SearchIndexingQueue.enqueue({ +export async function triggerSearchDeletion(bookmarkId: string) { + await SearchIndexingQueue.enqueue({ bookmarkId: bookmarkId, type: "delete", }); |
