From e59be245d5e3005b5b5dadf78ad7115cc800c663 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 1 Jun 2025 20:53:12 +0000 Subject: feat: Allow specifying the overwrite mode for singlefile archives. Fixes #1125 --- apps/workers/workerUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/workers/workerUtils.ts') 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, }; } -- cgit v1.2.3-70-g09d2