diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-06-01 20:53:12 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-06-01 20:53:12 +0000 |
| commit | e59be245d5e3005b5b5dadf78ad7115cc800c663 (patch) | |
| tree | 67e973a0d2c54cc3c5c64829d811999c219b6fca /apps | |
| parent | ea1d0023bfee55358ebb1a96f3d06e783a219c0d (diff) | |
| download | karakeep-e59be245d5e3005b5b5dadf78ad7115cc800c663.tar.zst | |
feat: Allow specifying the overwrite mode for singlefile archives. Fixes #1125
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/workers/workerUtils.ts | 6 |
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,
};
}
|
