mirror of
https://github.com/tiennm99/coolify.git
synced 2026-06-20 21:45:52 +00:00
dbd2b68a08
Refactor upgrade state initialization into a shared `refreshUpgradeState()` method used by both `mount()` and `checkUpdate()`. The method now uses `version_compare` to validate upgrade availability and clears the `new_version_available` flag in InstanceSettings when the current version is already equal to or newer than the latest version, preventing stale upgrade notifications from persisting after a successful update.