aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
authorkamtschatka <simon.schatka@gmx.at>2024-07-21 23:08:06 +0200
committerGitHub <noreply@github.com>2024-07-21 22:08:06 +0100
commitc5c62de28944077004f01960ee9f7e12b7d26c2c (patch)
treea31c88ff70938c4afe062afbdb078ea3cb83df9a /packages/shared
parent4c23ea931dc01e0d99869eb518c85f891d006baa (diff)
downloadkarakeep-c5c62de28944077004f01960ee9f7e12b7d26c2c.tar.zst
fix: async/await issues with the new queue (#319)
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/queues.ts8
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",
});