Add backward compatibility in v2.js

Set run property to compile if it doesn't exist in v2.js
This commit is contained in:
Omar Brikaa 2022-05-02 13:25:46 +02:00
parent 2262618c52
commit b381271ba9
1 changed files with 5 additions and 1 deletions

View File

@ -264,7 +264,11 @@ router.post('/execute', async (req, res) => {
await job.prime();
const result = await job.execute();
let result = await job.execute();
// Backward compatibility when the run stage is not started
if (result.run === undefined) {
result.run = result.compile;
}
await job.cleanup();