From 5bfc9582708240f10438fac07debe2ae81eee341 Mon Sep 17 00:00:00 2001 From: Rayraegah Date: Sat, 21 May 2016 16:14:53 +0100 Subject: [PATCH] Revert "if wait value is null or undefined, set it to 0" This reverts commit 7ce4127908fd2bca268ca5ed0330079b4df0289c. --- route/new.js | 2 +- route/task/edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/route/new.js b/route/new.js index 50c68a8..a5bd5cc 100644 --- a/route/new.js +++ b/route/new.js @@ -42,7 +42,7 @@ function route(app) { standard: req.body.standard, ignore: req.body.ignore || [], timeout: req.body.timeout, - wait: req.body.wait || 0, + wait: req.body.wait, username: req.body.username, password: req.body.password }; diff --git a/route/task/edit.js b/route/task/edit.js index 985f732..4fa2c69 100644 --- a/route/task/edit.js +++ b/route/task/edit.js @@ -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 || 0; + task.wait = req.body.wait; task.username = req.body.username; task.password = req.body.password; var standards = getStandards().map(function(standard) {