mirror of
https://github.com/harish2704/node-job-manager.git
synced 2026-09-10 13:11:08 +00:00
Fix: constructor arguments can be null
This commit is contained in:
@@ -5,6 +5,7 @@ var utils = require('./utils');
|
|||||||
var STATE = utils.createEnum([ 'RUNNING', 'PAUSED', 'NOT_RUNNING']);
|
var STATE = utils.createEnum([ 'RUNNING', 'PAUSED', 'NOT_RUNNING']);
|
||||||
|
|
||||||
function JobManager(opts){
|
function JobManager(opts){
|
||||||
|
opts = opts || {};
|
||||||
|
|
||||||
//opts
|
//opts
|
||||||
this.notifyAt = opts.notifyAt|| 3;
|
this.notifyAt = opts.notifyAt|| 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user