updateConfig is no more
This commit is contained in:
+2
-2
@@ -801,11 +801,11 @@ function update(app, updateConfig, progressCallback, callback) {
|
|||||||
runApp.bind(null, app),
|
runApp.bind(null, app),
|
||||||
|
|
||||||
progressCallback.bind(null, { percent: 100, message: 'Done' }),
|
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) {
|
], function seriesDone(error) {
|
||||||
if (error && error.backupError) {
|
if (error && error.backupError) {
|
||||||
debugApp(app, 'update aborted because backup failed', error);
|
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) {
|
} else if (error) {
|
||||||
debugApp(app, 'Error updating app: %s', error);
|
debugApp(app, 'Error updating app: %s', error);
|
||||||
updateApp(app, { installationState: appdb.ISTATE_ERROR, errorMessage: error.message, updateTime: new Date() }, callback.bind(null, error));
|
updateApp(app, { installationState: appdb.ISTATE_ERROR, errorMessage: error.message, updateTime: new Date() }, callback.bind(null, error));
|
||||||
|
|||||||
Reference in New Issue
Block a user