filter users for clients

This commit is contained in:
2025-06-05 10:24:00 +05:30
parent f258029d29
commit 01b40dd757
2 changed files with 17 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export async function getUserHandler(req: FastifyRequest, res: FastifyReply) {
export async function listUserHandler(req: FastifyRequest, res: FastifyReply) {
try {
const users = await listUsers(req.user.tenantId);
const users = await listUsers(req.user);
return res.code(200).send({ users: users });
} catch (err) {
return err;