From 258d0aa9a243af1b3f3d3ca6ea85f462fddc711e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 10 Oct 2024 03:24:04 +0530 Subject: [PATCH] feat: get userId from workflow queue --- server/src/worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/worker.ts b/server/src/worker.ts index 2d4c404e..d50e6220 100644 --- a/server/src/worker.ts +++ b/server/src/worker.ts @@ -20,9 +20,9 @@ connection.on('error', (err) => { const workflowQueue = new Queue('workflow', { connection }); const worker = new Worker('workflow', async job => { - const { runId } = job.data; + const { runId, userId } = job.data; try { - const result = await handleRunRecording(runId); + const result = await handleRunRecording(runId, userId); return result; } catch (error) { logger.error('Error running workflow:', error);