storage: pass limits object to backend
This commit is contained in:
@@ -91,7 +91,7 @@ async function removeBackup(site, backup, progressCallback) {
|
||||
[removeError] = await safe(backupSites.storageApi(site).remove(site.config, remotePath));
|
||||
} else {
|
||||
progressCallback({ message: `${backup.remotePath}: Removing directory ${remotePath}`});
|
||||
[removeError] = await safe(backupSites.storageApi(site).removeDir(site.config, remotePath, progressCallback));
|
||||
[removeError] = await safe(backupSites.storageApi(site).removeDir(site.config, site.limits, remotePath, progressCallback));
|
||||
}
|
||||
|
||||
if (removeError) {
|
||||
@@ -258,7 +258,7 @@ async function removeOldAppSnapshots(site) {
|
||||
if (ext) {
|
||||
await safe(backupSites.storageApi(site).remove(site.config, remotePath), { debug });
|
||||
} else {
|
||||
await safe(backupSites.storageApi(site).removeDir(site.config, remotePath, progressCallback), { debug });
|
||||
await safe(backupSites.storageApi(site).removeDir(site.config, site.limits, remotePath, progressCallback), { debug });
|
||||
}
|
||||
|
||||
await backupSites.setSnapshotInfo(site, appId, null /* info */);
|
||||
|
||||
Reference in New Issue
Block a user