aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-06-01 20:53:12 +0000
committerMohamed Bassem <me@mbassem.com>2025-06-01 20:53:12 +0000
commite59be245d5e3005b5b5dadf78ad7115cc800c663 (patch)
tree67e973a0d2c54cc3c5c64829d811999c219b6fca /apps/workers
parentea1d0023bfee55358ebb1a96f3d06e783a219c0d (diff)
downloadkarakeep-e59be245d5e3005b5b5dadf78ad7115cc800c663.tar.zst
feat: Allow specifying the overwrite mode for singlefile archives. Fixes #1125
Diffstat (limited to 'apps/workers')
-rw-r--r--apps/workers/workerUtils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/workers/workerUtils.ts b/apps/workers/workerUtils.ts
index dc846177..44180951 100644
--- a/apps/workers/workerUtils.ts
+++ b/apps/workers/workerUtils.ts
@@ -44,8 +44,8 @@ export async function getBookmarkDetails(bookmarkId: string) {
videoAssetId: bookmark.assets.find(
(a) => a.assetType == AssetTypes.LINK_VIDEO,
)?.id,
- precrawledArchiveAssetId: bookmark.assets.find(
- (a) => a.assetType == AssetTypes.LINK_PRECRAWLED_ARCHIVE,
- )?.id,
+ precrawledArchiveAssetId: bookmark.assets
+ .filter((a) => a.assetType == AssetTypes.LINK_PRECRAWLED_ARCHIVE)
+ .at(-1)?.id,
};
}