Nick: fix loggin for batch scrape
Some checks are pending
Deploy Images to GHCR / push-app-image (push) Waiting to run

This commit is contained in:
Nicolas 2024-10-24 23:44:08 -03:00
parent 9a4ccd0801
commit dbcf2d7ff6

View File

@ -499,7 +499,7 @@ async function processJob(job: Job, token: string) {
time_taken: (Date.now() - sc.createdAt) / 1000,
team_id: job.data.team_id,
mode: job.data.crawlerOptions !== null ? "crawl" : "batch_scrape",
url: sc.originUrl,
url: sc?.originUrl ?? (job.data.crawlerOptions === null ? "Batch Scrape" : "Unknown"),
crawlerOptions: sc.crawlerOptions,
pageOptions: sc.pageOptions,
origin: job.data.origin,