restore: use PENDING_RESTORE instead of PENDING_IMPORT
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user