add missing arg

This commit is contained in:
Girish Ramakrishnan
2021-02-24 16:29:43 -08:00
parent a546914796
commit b0e80de9ec

View File

@@ -1979,7 +1979,8 @@ function listBackups(app, page, perPage, callback) {
});
}
function restoreInstalledApps(callback) {
function restoreInstalledApps(options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
getAll(function (error, apps) {
@@ -2002,7 +2003,7 @@ function restoreInstalledApps(callback) {
}
const task = {
args: { restoreConfig, skipDnsSetup: false, overwriteDns: true, oldManifest },
args: { restoreConfig, skipDnsSetup: options.skipDnsSetup, overwriteDns: true, oldManifest },
values: {},
scheduleNow: false, // task will be scheduled by autoRestartTasks when platform is ready
requireNullTaskId: false // ignore existing stale taskId