diff options
Diffstat (limited to 'apps/workers/crawlerWorker.ts')
| -rw-r--r-- | apps/workers/crawlerWorker.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts index f2e0e4a8..58f1aa85 100644 --- a/apps/workers/crawlerWorker.ts +++ b/apps/workers/crawlerWorker.ts @@ -39,7 +39,7 @@ import { LinkCrawlerQueue, OpenAIQueue, queueConnectionDetails, - SearchIndexingQueue, + triggerSearchReindex, zCrawlLinkRequestSchema, } from "@hoarder/shared/queues"; @@ -490,10 +490,7 @@ async function runCrawler(job: Job<ZCrawlLinkRequest, void>) { } // Update the search index - SearchIndexingQueue.add("search_indexing", { - bookmarkId, - type: "index", - }); + triggerSearchReindex(bookmarkId); // Do the archival as a separate last step as it has the potential for failure if (serverConfig.crawler.fullPageArchive) { |
