aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-10-06 12:26:31 +0000
committerMohamedBassem <me@mbassem.com>2024-10-06 12:26:31 +0000
commitdb2d346cd6c265d8e7c69383c6de03bf5f6252f0 (patch)
treebe8a7987190c292d96a52c8a84f83cb3566801e6 /apps/workers
parente6d4ff9e9c5e3de8cd2a4abf8195e2e40d21317e (diff)
downloadkarakeep-db2d346cd6c265d8e7c69383c6de03bf5f6252f0.tar.zst
refactor: Include userId in the assets table
Diffstat (limited to 'apps/workers')
-rw-r--r--apps/workers/crawlerWorker.ts5
1 files changed, 5 insertions, 0 deletions
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,
});
}
}