fix: Fix incorrect upgrade notification issue (#10901)

This commit is contained in:
CityFun 2025-11-10 12:02:38 +08:00 committed by GitHub
parent c1039fb7f2
commit da5668ac27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2149,7 +2149,10 @@ func hasLinkDB(installID uint) bool {
func isEditCompose(installed model.AppInstall) bool {
detail, _ := appDetailRepo.GetFirst(repo.WithByID(installed.AppDetailId))
rawCompose, _ := getUpgradeCompose(installed, detail)
rawCompose, err := getUpgradeCompose(installed, detail)
if rawCompose == "" || err != nil {
return false
}
if rawCompose != installed.DockerCompose {
return true
}