if wait value is null or undefined, set it to 0

This commit is contained in:
Rayraegah
2016-05-21 15:43:58 +01:00
parent 2a15773e04
commit 7ce4127908
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ function route(app) {
task.name = req.body.name;
task.ignore = req.body.ignore;
task.timeout = req.body.timeout;
task.wait = req.body.wait;
task.wait = req.body.wait || 0;
task.username = req.body.username;
task.password = req.body.password;
var standards = getStandards().map(function(standard) {