Rename getByIdentifierAndStatePaged to listByIdentifierAndStatePaged
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user