mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: use httapi.Write instead of render (#980)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user