fix dbcontainerstatusjob

This commit is contained in:
Andras Bacsai 2023-08-24 20:52:43 +02:00
parent 7160f50322
commit ac76870d67

View File

@ -39,7 +39,9 @@ public function handle(): void
);
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;