From adacf2dfba0f9ab395c22736c3f7555ad7ae5a1e Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 12 Apr 2022 16:13:57 +0000 Subject: [PATCH] fix: use httapi.Write instead of render --- coderd/users.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coderd/users.go b/coderd/users.go index d2b3395bbe049..6fcab0814033f 100644 --- a/coderd/users.go +++ b/coderd/users.go @@ -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.