From 979697df1c6315fbc8e623647868bed745558248 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 1 Sep 2024 13:47:51 -0300 Subject: [PATCH] Update queue-worker.ts --- 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 f8675ac3..fbf7293a 100644 --- a/apps/api/src/services/queue-worker.ts +++ b/apps/api/src/services/queue-worker.ts @@ -357,7 +357,7 @@ async function processJob(job: Job, token: string) { } // v1 web hooks, call when done with no data, but with event completed if (job.data.v1 && job.data.webhook) { - callWebhook(job.data.team_id, job.id as string, [], job.data.webhook, job.data.v1, "crawl.completed").catch((error) => { + callWebhook(job.data.team_id, job.data.crawl_id, [], job.data.webhook, job.data.v1, "crawl.completed").catch((error) => { Logger.error(`Error calling webhook for job ${job.id} - ${error}`); }); }