From 5a5b0e3a1b9db8b0cbad468c129c6de6d5dd2c59 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Sat, 3 Jun 2023 13:19:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=B9=8B=E5=90=8E=E6=97=A7=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=A2=AB=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98=20(#1241?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index c2e5102ad..d750fb6a0 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -813,6 +813,12 @@ func (a AppService) SyncAppListFromRemote() error { if d.Status == constant.AppTakeDown { runtime, _ := runtimeRepo.GetFirst(runtimeRepo.WithDetailId(d.ID)) if runtime != nil { + updateDetails = append(updateDetails, d) + continue + } + installs, _ := appInstallRepo.ListBy(appInstallRepo.WithDetailIdsIn([]uint{d.ID})) + if len(installs) > 0 { + updateDetails = append(updateDetails, d) continue } deleteDetails = append(deleteDetails, d)