sist2-admin: don't set status to failed when using debug binary

This commit is contained in:
2023-06-07 20:40:11 -04:00
parent 7eb064162e
commit e2025df2c0
3 changed files with 10 additions and 8 deletions

View File

@@ -134,7 +134,7 @@ export default {
duration: this.taskDuration(row),
time: moment.utc(row.started).local().format("dd, MMM Do YYYY, HH:mm:ss"),
logs: null,
status: row.return_code === 0 ? "ok" : "failed",
status: [0,1].includes(row.return_code) ? "ok" : "failed",
_row: row
}));
});