Use result in db instead of ipc

This commit is contained in:
Girish Ramakrishnan
2018-11-29 15:16:31 -08:00
parent d9f3f64c76
commit 2f729b56fa
6 changed files with 34 additions and 49 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ function doUpdate(boxUpdateInfo, callback) {
tasks.setProgress(tasks.TASK_UPDATE, { percent: 10, message: 'Backing up' }, NOOP_CALLBACK);
backups.backupBoxAndApps({ userId: null, username: 'updater' }, (progress) => tasks.setProgress(tasks.TASK_MIGRATE, { percent: 10+progress.percent*70/100, message: progress.message }, NOOP_CALLBACK), function (error) {
backups.backupBoxAndApps((progress) => tasks.setProgress(tasks.TASK_MIGRATE, { percent: 10+progress.percent*70/100, message: progress.message }, NOOP_CALLBACK), function (error) {
if (error) return updateError(error);
debug('updating box %s', boxUpdateInfo.sourceTarballUrl);