We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038ad91 commit 132ed27Copy full SHA for 132ed27
coderd/users.go
@@ -9,7 +9,6 @@ import (
9
"slices"
10
11
"github.com/go-chi/chi/v5"
12
- "github.com/go-chi/render"
13
"github.com/google/uuid"
14
"golang.org/x/xerrors"
15
@@ -273,8 +272,7 @@ func (api *API) users(rw http.ResponseWriter, r *http.Request) {
273
272
organizationIDsByUserID[organizationIDsByMemberIDsRow.UserID] = organizationIDsByMemberIDsRow.OrganizationIDs
274
}
275
276
- render.Status(r, http.StatusOK)
277
- render.JSON(rw, r, codersdk.GetUsersResponse{
+ httpapi.Write(ctx, rw, http.StatusOK, codersdk.GetUsersResponse{
278
Users: convertUsers(users, organizationIDsByUserID),
279
Count: int(userCount),
280
})
0 commit comments