feat: return boolean value
This commit is contained in:
@@ -155,11 +155,7 @@ async function executeRun(fileName: string, runId: string) {
|
|||||||
JSON.stringify(updated_run_meta, null, 2)
|
JSON.stringify(updated_run_meta, null, 2)
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return true;
|
||||||
browserId: parsedRun.browserId,
|
|
||||||
runId: runId,
|
|
||||||
success: true,
|
|
||||||
};
|
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
logger.log('info', `Error while running a recording with name: ${fileName}_${runId}.json`);
|
logger.log('info', `Error while running a recording with name: ${fileName}_${runId}.json`);
|
||||||
console.log(error.message);
|
console.log(error.message);
|
||||||
@@ -174,11 +170,7 @@ async function executeRun(fileName: string, runId: string) {
|
|||||||
JSON.stringify(parsedErrorRun, null, 2)
|
JSON.stringify(parsedErrorRun, null, 2)
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return false;
|
||||||
runId: runId,
|
|
||||||
success: false,
|
|
||||||
error: error.message,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export { workflowQueue, runWorkflow };
|
export { workflowQueue, runWorkflow };
|
||||||
Reference in New Issue
Block a user