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

@@ -36,7 +36,7 @@ function list(req, res, next) {
function startBackup(req, res, next) {
// note that cloudron.backup only waits for backup initiation and not for backup to complete
// backup progress can be checked up ny polling the progress api call
tasks.startTask(tasks.TASK_BACKUP, auditSource(req), function (error) {
tasks.startTask(tasks.TASK_BACKUP, [], auditSource(req), function (error) {
if (error && error.reason === TasksError.BAD_STATE) return next(new HttpError(409, error.message));
if (error) return next(new HttpError(500, error));