backup: make upload progress available with callback+ipc

This commit is contained in:
Girish Ramakrishnan
2018-11-27 10:24:54 -08:00
parent 6c0b7017bd
commit aa31be5c5a
3 changed files with 38 additions and 32 deletions
+2 -2
View File
@@ -581,7 +581,7 @@ function backup(app, callback) {
async.series([
updateApp.bind(null, app, { installationProgress: '10, Backing up' }),
backups.backupApp.bind(null, app),
backups.backupApp.bind(null, app, (progress) => updateApp(app, { installationProgress: progress.message })),
// done!
function (callback) {
@@ -694,7 +694,7 @@ function update(app, callback) {
async.series([
updateApp.bind(null, app, { installationProgress: '15, Backing up app' }),
backups.backupApp.bind(null, app)
backups.backupApp.bind(null, app, (progress) => updateApp(app, { installationProgress: progress.message }))
], function (error) {
if (error) error.backupError = true;
next(error);