Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit 2a46af7

Browse files
Fixed failing test
1 parent 20343ce commit 2a46af7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

util/scheduler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ exports.scheduleTask = function(type, operation) {
3838
default:
3939
return null;
4040
};
41+
if (typeof operation !== 'Function') {
42+
return null;
43+
};
4144
var job = new cronJob(cronString, operation, null, true);
4245
return job;
4346
};

0 commit comments

Comments
 (0)