Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: fix assets being marked as pending summarization

Mohamed Bassem14db7aefc33b
diff --git a/apps/workers/workers/assetPreprocessingWorker.ts b/apps/workers/workers/assetPreprocessingWorker.ts
index d059e21c..d2df1724 100644
--- a/apps/workers/workers/assetPreprocessingWorker.ts
+++ b/apps/workers/workers/assetPreprocessingWorker.ts
@@ -357,6 +357,13 @@ async function run(req: DequeuedJob<AssetPreprocessingRequest>) {
},
enqueueOpts,
);
+ await OpenAIQueue.enqueue(
+ {
+ bookmarkId,
+ type: "summarize",
+ },
+ enqueueOpts,
+ );
// Update the search index
await triggerSearchReindex(bookmarkId, enqueueOpts);