fix: 解决创建 phpMyAdmin 报错的BUG

This commit is contained in:
zhengkunwang223 2023-02-13 11:22:22 +04:00 committed by zhengkunwang223
parent 3260f56bb6
commit ad5b03c1d3

View file

@ -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