mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 限制版本为 latest 应用升级 (#3816)
This commit is contained in:
parent
eef445c1eb
commit
c169f211a0
@ -1066,7 +1066,7 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool) ([]respons
|
|||||||
}
|
}
|
||||||
var versions []string
|
var versions []string
|
||||||
for _, detail := range details {
|
for _, detail := range details {
|
||||||
if detail.IgnoreUpgrade {
|
if detail.IgnoreUpgrade || installed.Version == "latest" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if common.IsCrossVersion(installed.Version, detail.Version) && !app.CrossVersionUpdate {
|
if common.IsCrossVersion(installed.Version, detail.Version) && !app.CrossVersionUpdate {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user