drop commented code

This commit is contained in:
Jörn Friedrich Dreyer
2023-03-24 12:10:58 +01:00
committed by GitHub
parent f33c524a5d
commit a1bb47b180

View File

@@ -91,7 +91,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http.
i := &invitations.Invitation{}
err := json.NewDecoder(r.Body).Decode(i)
if err != nil {
// logger.Debug().Err(err).Interface("body", r.Body).Msg("could not invite user: invalid request body")
errorcode.InvalidRequest.Render(w, r, http.StatusBadRequest, fmt.Sprintf("invalid request body: %v", err.Error()))
return
}
@@ -103,7 +102,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http.
return
}
// w.Header().Set("Content-type", "application/json")
render.Status(r, http.StatusCreated)
render.JSON(w, r, res)
}