From db2d346cd6c265d8e7c69383c6de03bf5f6252f0 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 6 Oct 2024 12:26:31 +0000 Subject: refactor: Include userId in the assets table --- apps/workers/crawlerWorker.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/workers') diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts index 246e9050..f830c500 100644 --- a/apps/workers/crawlerWorker.ts +++ b/apps/workers/crawlerWorker.ts @@ -556,6 +556,7 @@ async function crawlAndParseUrl( screenshotAssetId, oldScreenshotAssetId, bookmarkId, + userId, AssetTypes.LINK_SCREENSHOT, txn, ); @@ -563,6 +564,7 @@ async function crawlAndParseUrl( imageAssetId, oldImageAssetId, bookmarkId, + userId, AssetTypes.LINK_BANNER_IMAGE, txn, ); @@ -592,6 +594,7 @@ async function crawlAndParseUrl( fullPageArchiveAssetId, oldFullPageArchiveAssetId, bookmarkId, + userId, AssetTypes.LINK_FULL_PAGE_ARCHIVE, txn, ); @@ -685,6 +688,7 @@ async function updateAsset( newAssetId: string | null, oldAssetId: string | undefined, bookmarkId: string, + userId: string, assetType: AssetTypes, txn: HoarderDBTransaction, ) { @@ -696,6 +700,7 @@ async function updateAsset( id: newAssetId, assetType, bookmarkId, + userId, }); } } -- cgit v1.2.3-70-g09d2