From bbdfbe1ab701a3f1f163e5d3a747d6cf133a1d5e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 25 Nov 2025 18:12:52 +0100 Subject: [PATCH] restore: when restoring apps, use the latest backup id this ignores the user provided site information. the site contents may or may not contain this app. --- src/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;