From 014af81a92a76777e5b9fae247c5fea97ab47ba7 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 2 Apr 2024 23:02:45 +0900 Subject: [PATCH] fix --- ent/ogent/ogent.go | 4 ++-- tmp/ogent/ogent.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ent/ogent/ogent.go b/ent/ogent/ogent.go index 3378cb9..da38617 100644 --- a/ent/ogent/ogent.go +++ b/ent/ogent/ogent.go @@ -693,8 +693,8 @@ func (h *OgentHandler) UpdateMa(ctx context.Context, req *UpdateMaReq, params Up // DeleteMa handles DELETE /mas/{id} requests. func (h *OgentHandler) DeleteMa(ctx context.Context, params DeleteMaParams) (DeleteMaRes, error) { - err := h.client.Ma.DeleteOneID(0).Exec(ctx) - //err := h.client.Ma.DeleteOneID(params.ID).Exec(ctx) + //err := h.client.Ma.DeleteOneID(0).Exec(ctx) + err := h.client.Ma.DeleteOneID(params.ID).Exec(ctx) if err != nil { switch { case ent.IsNotFound(err): diff --git a/tmp/ogent/ogent.go b/tmp/ogent/ogent.go index 3378cb9..da38617 100644 --- a/tmp/ogent/ogent.go +++ b/tmp/ogent/ogent.go @@ -693,8 +693,8 @@ func (h *OgentHandler) UpdateMa(ctx context.Context, req *UpdateMaReq, params Up // DeleteMa handles DELETE /mas/{id} requests. func (h *OgentHandler) DeleteMa(ctx context.Context, params DeleteMaParams) (DeleteMaRes, error) { - err := h.client.Ma.DeleteOneID(0).Exec(ctx) - //err := h.client.Ma.DeleteOneID(params.ID).Exec(ctx) + //err := h.client.Ma.DeleteOneID(0).Exec(ctx) + err := h.client.Ma.DeleteOneID(params.ID).Exec(ctx) if err != nil { switch { case ent.IsNotFound(err):