An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
chore: Refactor DatabaseBackupJob to handle missing team
Andras Bacsaid84d0a816b90
diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.phpindex 21743a8cb2..769739d5e7 100644--- a/app/Jobs/DatabaseBackupJob.php+++ b/app/Jobs/DatabaseBackupJob.php@@ -66,7 +66,12 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueuepublic function handle(): void{try {- $this->team = Team::findOrFail($this->backup->team_id);+ $this->team = Team::find($this->backup->team_id);+ if (! $this->team) {+ $this->backup->delete();++ return;+ }if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {$this->database = data_get($this->backup, 'database');$this->server = $this->database->service->server;