Skip to content

Commit

Permalink
Correction in job filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Michalski committed Aug 20, 2020
1 parent 8cbdeaf commit 3907bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/jobsExceedingAttemptsFilter.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = jobs => jobs.filter(job => !job || typeof job !== 'object' || job.attemptsMade <= job.opts.attempts)
module.exports = jobs => jobs.filter(job => job && typeof job === 'object' && job.attemptsMade > job.opts.attempts)

0 comments on commit 3907bac

Please sign in to comment.