Skip to content

feat: add count to get users endpoint #5016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 14, 2022
Prev Previous commit
Next Next commit
fix
  • Loading branch information
f0ssel committed Nov 14, 2022
commit 7f43a6cd49e414ea57aa4bebf2933a1bf79be55c
5 changes: 4 additions & 1 deletion site/src/testHelpers/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export const handlers = [
rest.get("/api/v2/users", async (req, res, ctx) => {
return res(
ctx.status(200),
ctx.json({ users: [M.MockUser, M.MockUser2, M.SuspendedMockUser], count: 26 }),
ctx.json({
users: [M.MockUser, M.MockUser2, M.SuspendedMockUser],
count: 26,
}),
)
}),
rest.get("/api/v2/users/me/organizations", (req, res, ctx) => {
Expand Down