aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/openaiWorker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers/openaiWorker.ts')
-rw-r--r--apps/workers/openaiWorker.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts
index 7b74e4c3..776d6828 100644
--- a/apps/workers/openaiWorker.ts
+++ b/apps/workers/openaiWorker.ts
@@ -17,7 +17,7 @@ import logger from "@hoarder/shared/logger";
import {
OpenAIQueue,
queueConnectionDetails,
- SearchIndexingQueue,
+ triggerSearchReindex,
zOpenAIRequestSchema,
} from "@hoarder/shared/queues";
@@ -396,8 +396,5 @@ async function runOpenAI(job: Job<ZOpenAIRequest, void>) {
await connectTags(bookmarkId, tags, bookmark.userId);
// Update the search index
- SearchIndexingQueue.add("search_indexing", {
- bookmarkId,
- type: "index",
- });
+ triggerSearchReindex(bookmarkId);
}