disable stopped notification until fixed
This commit is contained in:
parent
522713473d
commit
35a75e1066
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user