Fix tgz app backup download

Fixes #868
This commit is contained in:
Johannes Zellner
2025-11-05 18:14:46 +01:00
parent aaa750dbbc
commit 610651066a
2 changed files with 2 additions and 1 deletions

View File

@@ -2833,6 +2833,7 @@ async function getBackupDownloadStream(app, backupId) {
const backupSite = await backupSites.get(backup.siteId);
if (!backupSite) throw new BoxError(BoxError.NOT_FOUND, 'Backup site not found'); // not possible
if (backupSite.format !== 'tgz') throw new BoxError(BoxError.BAD_STATE, 'only tgz backups can be downloaded');
const ps = new PassThrough();