Skip to content

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.

fix dbcontainerstatusjob

Andras Bacsaiac76870d67d0
diff --git a/app/Jobs/DatabaseContainerStatusJob.php b/app/Jobs/DatabaseContainerStatusJob.php
index 3993367fc9..c331d3d4f5 100644
--- a/app/Jobs/DatabaseContainerStatusJob.php
+++ b/app/Jobs/DatabaseContainerStatusJob.php
@@ -39,7 +39,9 @@ class DatabaseContainerStatusJob implements ShouldQueue, ShouldBeUnique
);
if ($this->database->status === 'running' && $status !== 'running') {
- $this->database->environment->project->team->notify(new StatusChanged($this->database));
+ if (data_get($this->database, 'environment.project.team')) {
+ $this->database->environment->project->team->notify(new StatusChanged($this->database));
+ }
}
if ($this->database->status !== $status) {
$this->database->status = $status;