mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix dbcontainerstatusjob
This commit is contained in:
parent
7160f50322
commit
ac76870d67
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue