From ad5b03c1d348fcd8a5dc34f17ca113f092b922d8 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 13 Feb 2023 11:22:22 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=88=9B=E5=BB=BA=20p?= =?UTF-8?q?hpMyAdmin=20=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index af234ae62..7f9099622 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -86,7 +86,7 @@ func createLink(ctx context.Context, app model.App, appInstall *model.AppInstall } } - if !reflect.DeepEqual(dbConfig, dto.AppDatabase{}) { + if !reflect.DeepEqual(dbConfig, dto.AppDatabase{}) && dbConfig.DbName != "" && dbConfig.DbUser != "" && dbConfig.Password != "" { dbInstall, err := appInstallRepo.GetFirst(appInstallRepo.WithServiceName(dbConfig.ServiceName)) if err != nil { return err