mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
render.Status(r, http.StatusOK)
|
httpapi.Write(rw, http.StatusOK, convertUser(updatedUserProfile))
|
||||||
render.JSON(rw, r, convertUser(updatedUserProfile))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns organizations the parameterized user has access to.
|
// Returns organizations the parameterized user has access to.
|
||||||
|
Reference in New Issue
Block a user