fix: function calls

This commit is contained in:
peaklabs-dev committed 2025-01-13 16:54:17 +01:00
1 parent f0d15afbf2
commit a5fadb0536
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -124,10 +124,12 @@ class BackupEdit extends Component
try {
if ($this->delete_associated_backups_locally) {
deleteOldBackupsLocally($this->backup);
$filenames = $this->backup->executions->pluck('filename')->filter()->all();
deleteBackupsLocally($filenames, $this->backup->server);
}
if ($this->delete_associated_backups_s3 && $this->backup->s3) {
deleteOldBackupsFromS3($this->backup);
$filenames = $this->backup->executions->pluck('filename')->filter()->all();
deleteBackupsS3($filenames, $this->backup->s3);
}
$this->backup->delete();