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