mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 21:38:57 +08:00
fix: Fix incorrect upgrade notification issue (#10901)
This commit is contained in:
parent
c1039fb7f2
commit
da5668ac27
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue