mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
refactor(cloudflare): update server retrieval method for improved query efficiency
This commit is contained in:
parent
4dc0254e62
commit
d3c517353c
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ class CloudflareTunnelChangedNotification
|
|||
$server_id = data_get($event, 'data.server_id');
|
||||
$ssh_domain = data_get($event, 'data.ssh_domain');
|
||||
|
||||
$this->server = Server::find($server_id)->firstOrFail();
|
||||
$this->server = Server::where('id', $server_id)->firstOrFail();
|
||||
|
||||
// Check if cloudflare tunnel is running (container is healthy) - try 3 times with 5 second intervals
|
||||
$cloudflareHealthy = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue