backups: root ~~canal~~ path surgery
remove rootPath and getBackupFilePath from the backup target and make this backend specific.
This commit is contained in:
@@ -2827,7 +2827,7 @@ async function getBackupDownloadStream(app, backupId) {
|
||||
|
||||
const ps = new PassThrough();
|
||||
|
||||
const stream = await backupTargets.storageApi(backupTarget).download(backupTarget.config, backupTargets.getBackupFilePath(backupTarget, backup.remotePath));
|
||||
const stream = await backupTargets.storageApi(backupTarget).download(backupTarget.config, backup.remotePath);
|
||||
stream.on('error', function(error) {
|
||||
debug(`getBackupDownloadStream: read stream error: ${error.message}`);
|
||||
ps.emit('error', new BoxError(BoxError.EXTERNAL_ERROR, error));
|
||||
|
||||
Reference in New Issue
Block a user