fix: use httapi.Write instead of render (#980)

This commit is contained in:
Bruno Quaresma
2022-04-12 13:29:07 -03:00
committed by GitHub
parent d9d4599ba9
commit 52271ff9f8

View File

@ -327,8 +327,7 @@ func (api *api) putUserProfile(rw http.ResponseWriter, r *http.Request) {
return
}
render.Status(r, http.StatusOK)
render.JSON(rw, r, convertUser(updatedUserProfile))
httpapi.Write(rw, http.StatusOK, convertUser(updatedUserProfile))
}
// Returns organizations the parameterized user has access to.