Refactor BackupExecutions.php to use optional chaining for deleting failed backup executions
This commit is contained in:
parent
b0b7842f9c
commit
bb451ac3b5
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ public function getListeners()
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue