Skip to content

Commit

Permalink
feat: 限制版本为 latest 应用升级 (#3816)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 committed Feb 4, 2024
1 parent eef445c commit c169f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/service/app_utils.go
Expand Up @@ -1066,7 +1066,7 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool) ([]respons
}
var versions []string
for _, detail := range details {
if detail.IgnoreUpgrade {
if detail.IgnoreUpgrade || installed.Version == "latest" {
continue
}
if common.IsCrossVersion(installed.Version, detail.Version) && !app.CrossVersionUpdate {
Expand Down

0 comments on commit c169f21

Please sign in to comment.