Skip to content

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

fix: add missing source to createBookmarks from import

Mohamed Bassem7cc0115104de
diff --git a/apps/workers/workers/importWorker.ts b/apps/workers/workers/importWorker.ts
index e2ef4ab1..c1dd483b 100644
--- a/apps/workers/workers/importWorker.ts
+++ b/apps/workers/workers/importWorker.ts
@@ -377,12 +377,13 @@ export class ImportWorker {
?.trim()
.substring(0, MAX_BOOKMARK_TITLE_LENGTH);
- const baseRequest = {
+ const baseRequest: Partial<CreateBookmarkInput> = {
title: normalizedTitle || undefined,
note: staged.note ?? undefined,
createdAt: staged.sourceAddedAt ?? undefined,
crawlPriority: "low" as const,
archived: staged.archived ?? false,
+ source: "import",
};
let bookmarkRequest: CreateBookmarkInput;