From c5c62de28944077004f01960ee9f7e12b7d26c2c Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Sun, 21 Jul 2024 23:08:06 +0200 Subject: fix: async/await issues with the new queue (#319) --- packages/shared/queues.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/shared') 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( }, ); -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", }); -- cgit v1.2.3-70-g09d2