From f9a0ca2ca6b704859484b87f2b41fac0ba2a771f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:13:01 +0200 Subject: [PATCH] refactor(proxy): update StartProxy calls to use named parameter for async option --- app/Actions/Server/ServerCheck.php | 2 +- app/Jobs/PushServerUpdateJob.php | 2 +- app/Jobs/ServerCheckJob.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Actions/Server/ServerCheck.php b/app/Actions/Server/ServerCheck.php index 41781d7fc..6ac87f1f0 100644 --- a/app/Actions/Server/ServerCheck.php +++ b/app/Actions/Server/ServerCheck.php @@ -104,7 +104,7 @@ class ServerCheck try { $shouldStart = CheckProxy::run($this->server); if ($shouldStart) { - StartProxy::run($this->server, false); + StartProxy::run($this->server, async: false); $this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server)); } } catch (\Throwable $e) { diff --git a/app/Jobs/PushServerUpdateJob.php b/app/Jobs/PushServerUpdateJob.php index 9936c76a2..65c72c8c9 100644 --- a/app/Jobs/PushServerUpdateJob.php +++ b/app/Jobs/PushServerUpdateJob.php @@ -306,7 +306,7 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue if ($this->foundProxy === false) { try { if (CheckProxy::run($this->server)) { - StartProxy::run($this->server, false); + StartProxy::run($this->server, async: false); $this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server)); } } catch (\Throwable $e) { diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.php index 409577451..dcbac9ac3 100644 --- a/app/Jobs/ServerCheckJob.php +++ b/app/Jobs/ServerCheckJob.php @@ -68,7 +68,7 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue try { $shouldStart = CheckProxy::run($this->server); if ($shouldStart) { - StartProxy::run($this->server, false); + StartProxy::run($this->server, async: false); $this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server)); } } catch (\Throwable $e) {