From c00d715b878c7a496e8d1edc16dfcfe56f576750 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 4 Sep 2023 16:26:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2172)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index ee5948267..5f75cebd3 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -361,7 +361,7 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) ( } index++ } - if app.Limit == 0 { + if app.Limit == 0 && appInstall.Name != serviceName { servicesMap[appInstall.Name] = servicesMap[serviceName] delete(servicesMap, serviceName) serviceName = appInstall.Name