fix: sentry error

This commit is contained in:
Andras Bacsai 2024-03-04 08:51:24 +01:00
parent f7e1ce8656
commit 0e1ba64836

View File

@ -51,6 +51,9 @@ public function __construct($backup)
{
$this->backup = $backup;
$this->team = Team::find($backup->team_id);
if (is_null($this->team)) {
return;
}
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
$this->database = data_get($this->backup, 'database');
$this->server = $this->database->service->server;