From 81e0b2849d837649da9adbc5d077b8c819fe7bee Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 15 Apr 2024 18:39:59 +0100 Subject: feature: Add title to bookmarks and allow editing them. Fixes #27 --- apps/workers/searchWorker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/workers') diff --git a/apps/workers/searchWorker.ts b/apps/workers/searchWorker.ts index 42a28bc1..a2dff49c 100644 --- a/apps/workers/searchWorker.ts +++ b/apps/workers/searchWorker.ts @@ -68,7 +68,7 @@ async function runIndex( ...(bookmark.link ? { url: bookmark.link.url, - title: bookmark.link.title, + linkTitle: bookmark.link.title, description: bookmark.link.description, content: bookmark.link.content, } @@ -81,6 +81,7 @@ async function runIndex( : undefined), ...(bookmark.text ? { content: bookmark.text.text } : undefined), note: bookmark.note, + title: bookmark.title, createdAt: bookmark.createdAt.toISOString(), tags: bookmark.tagsOnBookmarks.map((t) => t.tag.name), }, -- cgit v1.2.3-70-g09d2