Skip to content

Commit

Permalink
fix: fix outpout of agenda job status details
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Oct 24, 2020
1 parent 7b24f88 commit 82ab1a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JobProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ export class JobProcessor {
? this.runningJobs.length
: this.runningJobs.map(job => ({
...job.toJson(),
canceled: !!job.canceled
canceled: job.canceled?.message || job.canceled
})),
lockedJobs: !fullDetails
? this.lockedJobs.length
: this.lockedJobs.map(job => ({
...job.toJson(),
canceled: !!job.canceled
canceled: job.canceled?.message || job.canceled
})),
jobsToLock: !fullDetails
? this.jobsToLock.length
: this.jobsToLock.map(job => ({
...job.toJson(),
canceled: !!job.canceled
canceled: job.canceled?.message || job.canceled
})),
isLockingOnTheFly: this.isLockingOnTheFly
};
Expand Down

0 comments on commit 82ab1a8

Please sign in to comment.