diff --git a/app/Livewire/Upgrade.php b/app/Livewire/Upgrade.php index f001cd5bfe..8bb0abac9a 100644 --- a/app/Livewire/Upgrade.php +++ b/app/Livewire/Upgrade.php @@ -22,7 +22,9 @@ public function checkUpdate() { try { $settings = InstanceSettings::get(); + $this->latestVersion = get_latest_version_of_coolify(); $this->isUpgradeAvailable = $settings->new_version_available; + } catch (\Throwable $e) { return handleError($e, $this); } diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 525781a952..2e75fe2791 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -181,11 +181,7 @@ function get_latest_version_of_coolify(): string $versions = json_decode($versions, true); return data_get($versions, 'coolify.v4.version'); - // $response = Http::get('https://cdn.coollabs.io/coolify/versions.json'); - // $versions = $response->json(); - // return data_get($versions, 'coolify.v4.version'); } catch (\Throwable $e) { - //throw $e; ray($e->getMessage()); return '0.0.0';