From f47f7c73613563a986607bfeb87077057b7d004a Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:50:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83=E6=8A=A5=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84=E9=97=AE=E9=A2=98=20(#6785)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/runtime.go b/backend/app/service/runtime.go index ae69bdfaf..bb2be9a8f 100644 --- a/backend/app/service/runtime.go +++ b/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))