disable stopped notification until fixed

This commit is contained in:
Andras Bacsai 2023-08-27 14:53:16 +02:00
parent 522713473d
commit 35a75e1066
4 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ public function stop()
); );
$this->application->status = 'stopped'; $this->application->status = 'stopped';
$this->application->save(); $this->application->save();
$this->application->environment->project->team->notify(new StatusChanged($this->application)); // $this->application->environment->project->team->notify(new StatusChanged($this->application));
} }
} }
} }

View File

@ -44,7 +44,7 @@ public function stop()
); );
$this->database->status = 'stopped'; $this->database->status = 'stopped';
$this->database->save(); $this->database->save();
$this->database->environment->project->team->notify(new StatusChanged($this->database)); // $this->database->environment->project->team->notify(new StatusChanged($this->database));
} }
public function start() public function start()

View File

@ -35,7 +35,7 @@ public function handle(): void
try { try {
$status = getApplicationContainerStatus(application: $this->application); $status = getApplicationContainerStatus(application: $this->application);
if ($this->application->status === 'running' && $status !== 'running') { if ($this->application->status === 'running' && $status !== 'running') {
$this->application->environment->project->team->notify(new StatusChanged($this->application)); // $this->application->environment->project->team->notify(new StatusChanged($this->application));
} }
if ($this->pullRequestId !== 0) { if ($this->pullRequestId !== 0) {

View File

@ -40,7 +40,7 @@ public function handle(): void
if ($this->database->status === 'running' && $status !== 'running') { if ($this->database->status === 'running' && $status !== 'running') {
if (data_get($this->database, 'environment.project.team')) { 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) {