Skip to content

Commit

Permalink
fix: show latest version on manual update view
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Aug 7, 2024
1 parent 052565f commit f0278bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/Livewire/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 0 additions & 4 deletions bootstrap/helpers/shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit f0278bc

Please sign in to comment.