Browse Source

fix: 解决创建 phpMyAdmin 报错的BUG

pull/133/head
zhengkunwang223 2 years ago committed by zhengkunwang223
parent
commit
ad5b03c1d3
  1. 2
      backend/app/service/app_utils.go

2
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

Loading…
Cancel
Save