Browse Source

fix: 解决创建运行环境报名称存在的问题 (#6785)

pull/6790/head
zhengkunwang 1 month ago committed by GitHub
parent
commit
f47f7c7361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      backend/app/service/runtime.go

2
backend/app/service/runtime.go

@ -56,7 +56,7 @@ func (r *RuntimeService) Create(create request.RuntimeCreate) (*model.Runtime, e
opts []repo.DBOption
)
if create.Name != "" {
opts = append(opts, commonRepo.WithLikeName(create.Name))
opts = append(opts, commonRepo.WithByName(create.Name))
}
if create.Type != "" {
opts = append(opts, commonRepo.WithByType(create.Type))

Loading…
Cancel
Save