Refactor get_latest_sentinel_version() to use 'coolify.sentinel.version' key from versions.json

This commit is contained in:
Andras Bacsai
2024-10-15 14:03:10 +02:00
parent 567ce172dc
commit bf0a2f805b

View File

@@ -167,7 +167,7 @@ function get_latest_sentinel_version(): string
$response = Http::get('https://cdn.coollabs.io/coolify/versions.json');
$versions = $response->json();
return data_get($versions, 'sentinel.version');
return data_get($versions, 'coolify.sentinel.version');
} catch (\Throwable $e) {
//throw $e;
ray($e->getMessage());