fix: sentry
This commit is contained in:
parent
652df47c5c
commit
0a0bb0ca13
1 changed files with 4 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ public function getListeners()
|
||||||
public function cleanupFailed()
|
public function cleanupFailed()
|
||||||
{
|
{
|
||||||
if ($this->backup) {
|
if ($this->backup) {
|
||||||
$this->backup?->executions()->where('status', 'failed')->delete();
|
$this->backup->executions()->where('status', 'failed')->delete();
|
||||||
$this->refreshBackupExecutions();
|
$this->refreshBackupExecutions();
|
||||||
$this->dispatch('success', 'Failed backups cleaned up.');
|
$this->dispatch('success', 'Failed backups cleaned up.');
|
||||||
}
|
}
|
||||||
|
|
@ -49,6 +49,8 @@ public function download_file($exeuctionId)
|
||||||
}
|
}
|
||||||
public function refreshBackupExecutions(): void
|
public function refreshBackupExecutions(): void
|
||||||
{
|
{
|
||||||
$this->executions = $this->backup?->executions()->get()->sortByDesc('created_at');
|
if ($this->backup) {
|
||||||
|
$this->executions = $this->backup->executions()->get()->sortByDesc('created_at');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue