javascript - Get next recurrence of a Later schedule -
i using later.js in order create simple schedule. trying mongo database persistence.
meteor.startup(function () { const current = schedule.findone({ name: 'send text reminders' }); const interval = current.interval || 1; const recurrence = later.parse.recur().every(interval).minute(); later.setinterval(function sendreminders() { schedule.update({ name: 'send text reminders' }, { $set: { nextrunat: // next scheduled time. } }); }); }); i've been looking through docs haven't found area how next occurence of schedule.
is possible next scheduled run later.js?
Comments
Post a Comment