startTask now takes args

This commit is contained in:
Girish Ramakrishnan
2018-11-29 23:28:26 -08:00
parent cbcadaa449
commit 30aea047e3
5 changed files with 7 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ var async = require('async'),
tasks = require('../tasks.js');
function createBackup(callback) {
tasks.startTask(tasks.TASK_BACKUP, { username: 'test' }, function (error) { // this call does not wait for the backup!
tasks.startTask(tasks.TASK_BACKUP, [], { username: 'test' }, function (error) { // this call does not wait for the backup!
if (error) return callback(error);
function waitForBackup() {