Add backward compatibility in v2.js
Set run property to compile if it doesn't exist in v2.js
This commit is contained in:
parent
2262618c52
commit
b381271ba9
|
@ -264,7 +264,11 @@ router.post('/execute', async (req, res) => {
|
||||||
|
|
||||||
await job.prime();
|
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();
|
await job.cleanup();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue