feat: use plainRun.robotMetaId

This commit is contained in:
karishmas6
2024-10-18 00:05:56 +05:30
parent b6a87d892b
commit fb9f614d9c

View File

@@ -219,13 +219,17 @@ router.post('/runs/run/:id', requireSignIn, async (req, res) => {
serializableOutput: interpretationInfo.serializableOutput,
binaryOutput: uploadedBinaryOutput,
});
googleSheetUpdateTasks[req.params.id] = {
name: plainRun.name,
runId: plainRun.runId,
status: 'pending',
retries: 5,
};
processGoogleSheetUpdates();
try {
googleSheetUpdateTasks[plainRun.runId] = {
robotId: plainRun.robotMetaId,
runId: plainRun.runId,
status: 'pending',
retries: 5,
};
processGoogleSheetUpdates();
} catch (err: any) {
logger.log('error', `Failed to update Google Sheet for run: ${plainRun.runId}: ${err.message}`);
}
return res.send(true);
} else {
throw new Error('Could not destroy browser');