mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 14:16:28 +00:00
Refactor BackupExecutions.php to use optional chaining for deleting failed backup executions
This commit is contained in:
1 parent
b0b7842f9c
commit
bb451ac3b5
1 file changed
+1
-1
@@ -20,7 +20,7 @@ class BackupExecutions extends Component
|
|||||||
|
|
||||||
public function cleanupFailed()
|
public function cleanupFailed()
|
||||||
{
|
{
|
||||||
$this->backup->executions()->where('status', 'failed')->delete();
|
$this->backup?->executions()->where('status', 'failed')->delete();
|
||||||
$this->refreshBackupExecutions();
|
$this->refreshBackupExecutions();
|
||||||
}
|
}
|
||||||
public function deleteBackup($exeuctionId)
|
public function deleteBackup($exeuctionId)
|
||||||
|
|||||||
Reference in new issue
Block a user