Make optional fields optional (#154)

This fixes an issue that required people to manually specify a timeout
and wait for their tasks when they're created.
This commit is contained in:
Rowan Manning
2016-11-07 14:06:12 +00:00
committed by GitHub
parent 2976d5e391
commit c562bb07f3
3 changed files with 12 additions and 6 deletions

View File

@@ -41,10 +41,10 @@ function route(app) {
url: req.body.url,
standard: req.body.standard,
ignore: req.body.ignore || [],
timeout: req.body.timeout,
wait: req.body.wait,
username: req.body.username,
password: req.body.password
timeout: req.body.timeout || undefined,
wait: req.body.wait || undefined,
username: req.body.username || undefined,
password: req.body.password || undefined
};
app.webservice.tasks.create(newTask, (err, task) => {
if (err) {