Make restore/download logic have progress callbacks

This commit is contained in:
Girish Ramakrishnan
2018-11-27 11:55:53 -08:00
parent b2465dd2ee
commit 632ba69663
3 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ function restore(backupConfig, backupId, version, autoconf, auditSource, callbac
callback(null); // do no block
async.series([
backups.restore.bind(null, backupConfig, backupId),
backups.restore.bind(null, backupConfig, backupId, (progress) => debug(`restore: ${progress}`)),
eventlog.add.bind(null, eventlog.ACTION_RESTORE, auditSource, { backupId }),
autoprovision.bind(null, autoconf),
// currently, our suggested restore flow is after a dnsSetup. The dnSetup creates DKIM keys and updates the DNS