1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-14 01:34:47 +08:00

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