fix: undefined variable

This commit is contained in:
Andras Bacsai
2024-11-25 11:28:16 +01:00
parent 37d4d5f98c
commit cbe44529f9

View File

@@ -67,6 +67,8 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
public function handle(): void
{
try {
$databasesToBackup = null;
$this->team = Team::find($this->backup->team_id);
if (! $this->team) {
$this->backup->delete();