Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52271ff

Browse files
fix: use httapi.Write instead of render (#980)
1 parent d9d4599 commit 52271ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/users.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ func (api *api) putUserProfile(rw http.ResponseWriter, r *http.Request) {
327327
return
328328
}
329329

330-
render.Status(r, http.StatusOK)
331-
render.JSON(rw, r, convertUser(updatedUserProfile))
330+
httpapi.Write(rw, http.StatusOK, convertUser(updatedUserProfile))
332331
}
333332

334333
// Returns organizations the parameterized user has access to.

0 commit comments

Comments
 (0)