Skip to content

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

fix: dont fail indexing job if bookmark is not found

Mohamed Bassem9cc0246bfbe8
diff --git a/apps/workers/workers/searchWorker.ts b/apps/workers/workers/searchWorker.ts
index b0608dce..3483601a 100644
--- a/apps/workers/workers/searchWorker.ts
+++ b/apps/workers/workers/searchWorker.ts
@@ -76,7 +76,10 @@ async function runIndex(
});
if (!bookmark) {
- throw new Error(`Bookmark ${bookmarkId} not found`);
+ logger.warn(
+ `[search] Bookmark ${bookmarkId} not found, it might have been deleted already by the user. Skipping ...`,
+ );
+ return;
}
const document: BookmarkSearchDocument = {