This commit is contained in:
Andras Bacsai 2024-08-05 20:08:37 +02:00
parent 3e0821e471
commit 92ebc3f0c6
2 changed files with 2 additions and 5 deletions

View File

@ -25,7 +25,6 @@ public function getListeners()
return [ return [
"echo-private:user.{$userId},ServiceStatusChanged" => 'check_status', "echo-private:user.{$userId},ServiceStatusChanged" => 'check_status',
'check_status', 'check_status',
'refresh' => '$refresh',
]; ];
} }
@ -76,8 +75,7 @@ public function check_status()
{ {
try { try {
GetContainersStatus::run($this->service->server); GetContainersStatus::run($this->service->server);
// dispatch_sync(new ContainerStatusJob($this->service->server)); $this->dispatch('$refresh');
$this->dispatch('refresh')->self();
} catch (\Exception $e) { } catch (\Exception $e) {
return handleError($e, $this); return handleError($e, $this);
} }

View File

@ -21,7 +21,6 @@ public function getListeners()
return [ return [
"echo-private:team.{$teamId},ProxyStatusChanged" => 'loadDynamicConfigurations', "echo-private:team.{$teamId},ProxyStatusChanged" => 'loadDynamicConfigurations',
'loadDynamicConfigurations', 'loadDynamicConfigurations',
'refresh' => '$refresh',
]; ];
} }
@ -42,7 +41,7 @@ public function loadDynamicConfigurations()
$contents[$without_extension] = instant_remote_process(["cat {$proxy_path}/dynamic/{$file}"], $this->server); $contents[$without_extension] = instant_remote_process(["cat {$proxy_path}/dynamic/{$file}"], $this->server);
} }
$this->contents = $contents; $this->contents = $contents;
$this->dispatch('refresh'); $this->dispatch('$refresh');
} }
public function mount() public function mount()