moleculer-cron
moleculer-cron copied to clipboard
setTime() doesn't restart job
@davidroman0O,
In the old version of cron setTime() doesn't restart job:
CronJob.prototype.setTime = function(time) {
if (!(time instanceof CronTime)) throw new Error('time must be an instance of CronTime.');
this.stop();
this.cronTime = time;
};
Please write about it in the documentation or you can update cron.