fix: pass id (robot id) instead of run id

This commit is contained in:
karishmas6
2024-10-23 04:25:04 +05:30
parent 01fac62284
commit 3985032588

View File

@@ -20,9 +20,9 @@ connection.on('error', (err) => {
const workflowQueue = new Queue('workflow', { connection });
const worker = new Worker('workflow', async job => {
const { runId, userId } = job.data;
const { runId, userId, id } = job.data;
try {
const result = await handleRunRecording(runId, userId);
const result = await handleRunRecording(id, userId);
return result;
} catch (error) {
logger.error('Error running workflow:', error);