fix: pass id (robot id) instead of run id
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user