diff --git a/src/apps.js b/src/apps.js index 919b4ef3b..684718628 100644 --- a/src/apps.js +++ b/src/apps.js @@ -2864,7 +2864,8 @@ async function restoreApps(apps, options, auditSource) { let installationState, restoreConfig; if (!error && result.length) { installationState = exports.ISTATE_PENDING_RESTORE; - restoreConfig = { remotePath: result[0].remotePath, backupSite: options.backupSite }; + // intentionally ignore options.backupSite since the site may not have all the apps + restoreConfig = { backupId: result.id }; } else { installationState = exports.ISTATE_PENDING_INSTALL; restoreConfig = null;