firstandthird / hapi-job-queue

Hapi and MongoDB powered job queue.
MIT License
3 stars 1 forks source link

make callback functional on spawn functions. #14

Open ecwillis opened 9 years ago

ecwillis commented 9 years ago

I would like the following:

request.server.plugins.jobs.runSingle('dist-notifications', [jobData], function(err, joberr) {});

to allow the function cb at the end to be optional so it could be called like:

request.server.plugins.jobs.runSingle('dist-notifications', [jobData]);