From 369831af03c9e91d34b4661eeb92ba43912db49b Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <1paneldev@sina.com> Date: Wed, 3 Sep 2025 10:55:24 +0800 Subject: [PATCH] fix: Resolve the issue of still receiving update prompts after ignoring the application. --- agent/app/service/app_utils.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/app/service/app_utils.go b/agent/app/service/app_utils.go index d069c06c0824..ac6c9be2357d 100644 --- a/agent/app/service/app_utils.go +++ b/agent/app/service/app_utils.go @@ -1881,6 +1881,10 @@ func ignoreUpdate(installed model.AppInstall) bool { if installed.App.Type == "php" || installed.Status == constant.StatusInstalling { return true } + ignores, _ := appIgnoreUpgradeRepo.List(appDetailRepo.WithAppId(installed.AppId), appIgnoreUpgradeRepo.WithScope("all")) + if len(ignores) > 0 { + return true + } if installed.App.Key == constant.AppMysql { majorVersion := getMajorVersion(installed.Version) appDetails, _ := appDetailRepo.GetBy(appDetailRepo.WithAppId(installed.App.ID)) @@ -1896,10 +1900,6 @@ func ignoreUpdate(installed model.AppInstall) bool { return true } } - ignores, _ := appIgnoreUpgradeRepo.List(appDetailRepo.WithAppId(installed.AppId), appIgnoreUpgradeRepo.WithScope("all")) - if len(ignores) > 0 { - return true - } return false }