mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
fix dbcontainerstatusjob
This commit is contained in:
@@ -39,8 +39,10 @@ class DatabaseContainerStatusJob implements ShouldQueue, ShouldBeUnique
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->database->status === 'running' && $status !== 'running') {
|
if ($this->database->status === 'running' && $status !== 'running') {
|
||||||
|
if (data_get($this->database, 'environment.project.team')) {
|
||||||
$this->database->environment->project->team->notify(new StatusChanged($this->database));
|
$this->database->environment->project->team->notify(new StatusChanged($this->database));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($this->database->status !== $status) {
|
if ($this->database->status !== $status) {
|
||||||
$this->database->status = $status;
|
$this->database->status = $status;
|
||||||
$this->database->save();
|
$this->database->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user