Skip to content

Commit

Permalink
fix bug related read bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoyama committed Jul 18, 2024
1 parent 536d689 commit 5a8be02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router/v3/user_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (h *Handlers) AddUserGroupMember(c echo.Context) error {
}

var singleReq PostUserGroupMemberRequest
c.Request().Body = io.NopCloser(bytes.NewBuffer(bodyBytes))
if err := bindAndValidate(c, &singleReq); err == nil {
if err := h.Repo.AddUserToGroup(singleReq.ID, g.ID, singleReq.Role); err != nil {
return herror.InternalServerError(err)
Expand Down

0 comments on commit 5a8be02

Please sign in to comment.