fix: show latest version on manual update view

This commit is contained in:
Andras Bacsai 2024-08-07 12:10:31 +02:00
parent 052565f4e8
commit f0278bc33d
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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';