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):