From aa9a47bce710e3ffa8823c1aaa44ff2b8a6b55ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Tue, 12 Nov 2024 13:00:19 +0100 Subject: [PATCH] fix(queue-worker): logging job on batch scrape error --- apps/api/src/services/queue-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts index 0959424a..e44f65b3 100644 --- a/apps/api/src/services/queue-worker.ts +++ b/apps/api/src/services/queue-worker.ts @@ -581,7 +581,7 @@ async function processJob(job: Job & { id: string }, token: string) { time_taken: 0, team_id: job.data.team_id, mode: job.data.crawlerOptions !== null ? "crawl" : "batch_scrape", - url: sc ? sc.originUrl : job.data.url, + url: sc ? sc.originUrl ?? job.data.url : job.data.url, crawlerOptions: sc ? sc.crawlerOptions : undefined, scrapeOptions: sc ? sc.scrapeOptions : job.data.scrapeOptions, origin: job.data.origin,