fix: sentry error
This commit is contained in:
parent
f7e1ce8656
commit
0e1ba64836
@ -51,6 +51,9 @@ public function __construct($backup)
|
|||||||
{
|
{
|
||||||
$this->backup = $backup;
|
$this->backup = $backup;
|
||||||
$this->team = Team::find($backup->team_id);
|
$this->team = Team::find($backup->team_id);
|
||||||
|
if (is_null($this->team)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
|
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
|
||||||
$this->database = data_get($this->backup, 'database');
|
$this->database = data_get($this->backup, 'database');
|
||||||
$this->server = $this->database->service->server;
|
$this->server = $this->database->service->server;
|
||||||
|
Loading…
Reference in New Issue
Block a user