Skip to content

Commit

Permalink
Make sure that nextDates function return an array
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidia committed Aug 14, 2020
1 parent b9efa79 commit 0f43fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function CronJob(CronTime, spawn) {
CJ.prototype.fireOnTick = fireOnTick;

CJ.prototype.nextDates = function (i) {
return this.cronTime.sendAt(i);
return this.cronTime.sendAt(i || 0);
};

var start = function () {
Expand Down

0 comments on commit 0f43fec

Please sign in to comment.