fix: scheduledbackup not found
This commit is contained in:
parent
58c6d066f2
commit
6fb88ed479
1 changed files with 9 additions and 2 deletions
|
|
@ -54,8 +54,15 @@ public function mount()
|
||||||
}
|
}
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
$this->s3s = $s3s;
|
$this->s3s = $s3s;
|
||||||
$this->backup = $this->database?->scheduledBackups?->first() ?? null;
|
|
||||||
$this->executions = $this->backup?->executions ?? [];
|
$scheduledBackups = data_get($this->database, 'scheduledBackups');
|
||||||
|
if ($scheduledBackups) {
|
||||||
|
$this->backup = $scheduledBackups->first();
|
||||||
|
}
|
||||||
|
$executions = data_get($this->backup, 'executions');
|
||||||
|
if ($executions) {
|
||||||
|
$this->executions = $executions;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return redirect()->route('dashboard');
|
return redirect()->route('dashboard');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue