Rename getByIdentifierAndStatePaged to listByIdentifierAndStatePaged

This commit is contained in:
Girish Ramakrishnan
2026-02-15 12:15:55 +01:00
parent eae86d15ef
commit fc2e39f41b
6 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ async function restoreTask(backupSite, remotePath, ipv4Config, ipv6Config, optio
await backuptask.restore(backupSite, remotePath, (progress) => setProgress('restore', progress.message));
setProgress('restore', 'Downloading mail backup');
const mailBackups = await backups.getByIdentifierAndStatePaged(backups.BACKUP_IDENTIFIER_MAIL, backups.BACKUP_STATE_NORMAL, 1, 1);
const mailBackups = await backups.listByIdentifierAndStatePaged(backups.BACKUP_IDENTIFIER_MAIL, backups.BACKUP_STATE_NORMAL, 1, 1);
if (mailBackups.length === 0) throw new BoxError(BoxError.NOT_FOUND, 'mail backup not found');
const mailRemotePath = mailBackups[0].remotePath;
await backuptask.downloadMail(backupSite, mailRemotePath, (progress) => setProgress('restore', progress.message));