Skip to content

Commit b381271

Browse files
committed
Add backward compatibility in v2.js
Set run property to compile if it doesn't exist in v2.js
1 parent 2262618 commit b381271

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/src/api/v2.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ router.post('/execute', async (req, res) => {
264264

265265
await job.prime();
266266

267-
const result = await job.execute();
267+
let result = await job.execute();
268+
// Backward compatibility when the run stage is not started
269+
if (result.run === undefined) {
270+
result.run = result.compile;
271+
}
268272

269273
await job.cleanup();
270274

0 commit comments

Comments
 (0)