diff options
| author | MohamedBassem <me@mbassem.com> | 2024-04-15 18:39:59 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-04-15 18:55:34 +0100 |
| commit | 81e0b2849d837649da9adbc5d077b8c819fe7bee (patch) | |
| tree | 003bb21413372825dc19c07a87bdbe6692e384a9 /apps/workers | |
| parent | 5c9acb1cb3bfe341378b91bbed344dd7202a00d7 (diff) | |
| download | karakeep-81e0b2849d837649da9adbc5d077b8c819fe7bee.tar.zst | |
feature: Add title to bookmarks and allow editing them. Fixes #27
Diffstat (limited to 'apps/workers')
| -rw-r--r-- | apps/workers/searchWorker.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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), }, |
