passing an extra parameter in jobschedule in node.js
- by Sush
Is there any possible way to pass any extra parameter instead of date in schedule.scheduleJob(date,function(id))
The below code is not working
var id =record.id;
var date =record.date;
jobsCollection.save({
id: record.id
}, {
$set: record
}, function (err, result) {
var j = schedule.scheduleJob(date, function (id) {
…