mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-24 23:04:40 +08:00
fix: 解决 MYSQL 不显示升级的问题 (#1283)
This commit is contained in:
parent
b3ecddb20f
commit
911166152a
2 changed files with 6 additions and 0 deletions
|
@ -413,6 +413,9 @@ func (a *AppInstallService) GetUpdateVersions(installId uint) ([]dto.AppVersion,
|
|||
return versions, err
|
||||
}
|
||||
for _, detail := range details {
|
||||
if common.IsCrossVersion(install.Version, detail.Version) && !app.CrossVersionUpdate {
|
||||
continue
|
||||
}
|
||||
if common.CompareVersion(detail.Version, install.Version) {
|
||||
versions = append(versions, dto.AppVersion{
|
||||
Version: detail.Version,
|
||||
|
|
|
@ -768,6 +768,9 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool) ([]respons
|
|||
}
|
||||
var versions []string
|
||||
for _, detail := range details {
|
||||
if common.IsCrossVersion(installed.Version, detail.Version) && !app.CrossVersionUpdate {
|
||||
continue
|
||||
}
|
||||
versions = append(versions, detail.Version)
|
||||
}
|
||||
versions = common.GetSortedVersions(versions)
|
||||
|
|
Loading…
Reference in a new issue