fix: db backup job

This commit is contained in:
Andras Bacsai
2023-09-08 12:23:46 +02:00
parent dacfab8b29
commit 953bcfb5bb
4 changed files with 7 additions and 3 deletions

View File

@@ -46,6 +46,10 @@ class DatabaseBackupJob implements ShouldQueue
$this->backup = $backup;
$this->team = Team::find($backup->team_id);
$this->database = $this->backup->database;
if (!$this->database) {
ray('Database not found');
return;
}
$this->database_type = $this->database->type();
$this->server = $this->database->destination->server;
$this->database_status = $this->database->status;