fix: correct dispatch logic for Hetzner server status refresh in checkHetznerServerStatus method
This commit is contained in:
parent
2bca22082c
commit
5362952e2a
1 changed files with 3 additions and 3 deletions
|
|
@ -392,9 +392,9 @@ public function checkHetznerServerStatus(bool $manual = false)
|
|||
if ($this->server->hetzner_server_status !== $this->hetznerServerStatus) {
|
||||
$this->server->hetzner_server_status = $this->hetznerServerStatus;
|
||||
$this->server->update(['hetzner_server_status' => $this->hetznerServerStatus]);
|
||||
if ($manual) {
|
||||
$this->dispatch('success', 'Server status refreshed: '.ucfirst($this->hetznerServerStatus ?? 'unknown'));
|
||||
}
|
||||
}
|
||||
if ($manual) {
|
||||
$this->dispatch('success', 'Server status refreshed: '.ucfirst($this->hetznerServerStatus ?? 'unknown'));
|
||||
}
|
||||
|
||||
// If Hetzner server is off but Coolify thinks it's still reachable, update Coolify's state
|
||||
|
|
|
|||
Loading…
Reference in a new issue