updateConfig is no more

This commit is contained in:
Girish Ramakrishnan
2019-08-27 22:03:07 -07:00
parent 33cfd7a629
commit c6be0b290b

View File

@@ -801,11 +801,11 @@ function update(app, updateConfig, progressCallback, callback) {
runApp.bind(null, app),
progressCallback.bind(null, { percent: 100, message: 'Done' }),
updateApp.bind(null, app, { installationState: appdb.ISTATE_INSTALLED, errorMessage: '', health: null, updateConfig: null, taskId: null, updateTime: new Date() })
updateApp.bind(null, app, { installationState: appdb.ISTATE_INSTALLED, errorMessage: '', health: null, taskId: null, updateTime: new Date() })
], function seriesDone(error) {
if (error && error.backupError) {
debugApp(app, 'update aborted because backup failed', error);
updateApp(app, { installationState: appdb.ISTATE_INSTALLED, errorMessage: '', health: null, updateConfig: null, taskId: null }, callback.bind(null, error));
updateApp(app, { installationState: appdb.ISTATE_INSTALLED, errorMessage: '', health: null, taskId: null }, callback.bind(null, error));
} else if (error) {
debugApp(app, 'Error updating app: %s', error);
updateApp(app, { installationState: appdb.ISTATE_ERROR, errorMessage: error.message, updateTime: new Date() }, callback.bind(null, error));