diff options
Diffstat (limited to 'src/services/events/event.service.js')
-rw-r--r-- | src/services/events/event.service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/events/event.service.js b/src/services/events/event.service.js index 267016f..112990a 100644 --- a/src/services/events/event.service.js +++ b/src/services/events/event.service.js @@ -22,7 +22,7 @@ class Events { // Logs this.agenda.on('start', job => console.log(`Starting ${job.attrs.name} job`)); this.agenda.on('complete', job => console.log(`Job ${job.attrs.name} finished`)); - this.agenda.on('fail', (job, err) => console.log(`Job failed with the error ${err}`)); + this.agenda.on('fail', (err, job) => console.log(`Job failed with the error ${err}`)); return this.agenda.start(); }; |