restore: use PENDING_RESTORE instead of PENDING_IMPORT

This commit is contained in:
Girish Ramakrishnan
2025-08-05 12:46:45 +02:00
parent cc1ff369a7
commit 1d1197e18a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2853,7 +2853,7 @@ async function restoreApps(apps, options, auditSource) {
const [error, result] = await safe(backups.getByIdentifierAndStatePaged(app.id, backups.BACKUP_STATE_NORMAL, 1, 1));
let installationState, restoreConfig;
if (!error && result.length) {
installationState = exports.ISTATE_PENDING_IMPORT;
installationState = exports.ISTATE_PENDING_RESTORE;
restoreConfig = { remotePath: result[0].remotePath, backupTarget: options.backupTarget };
} else {
installationState = exports.ISTATE_PENDING_INSTALL;