diff --git a/src/apps.js b/src/apps.js index f0c9c9a63..3ce8c4709 100644 --- a/src/apps.js +++ b/src/apps.js @@ -1369,6 +1369,7 @@ function repair(appId, data, auditSource, callback) { }; if (errorState === exports.ISTATE_PENDING_INSTALL || errorState === exports.ISTATE_PENDING_CLONE) { + task.args = { overwriteDns: true }; if (data.manifest) { error = manifestFormat.parse(data.manifest); if (error) return callback(new BoxError(BoxError.BAD_FIELD, `manifest error: ${error.message}`)); @@ -1377,7 +1378,7 @@ function repair(appId, data, auditSource, callback) { if (error) return callback(error); task.values.manifest = data.manifest; - task.args = { overwriteDns: true, oldManifest: app.manifest }; + task.args.oldManifest = app.manifest; } }