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);