add organization access to clients

This commit is contained in:
2025-05-06 17:25:13 +05:30
parent 67c637d6da
commit d6d25004b9
6 changed files with 65 additions and 14 deletions

View File

@@ -80,7 +80,7 @@ export async function updateUserHandler(
const { userId } = req.params as { userId: string };
try {
const updatedUser = await updateUser(userId, input);
const updatedUser = await updateUser(userId, input, req.user);
if (!updateUser) return res.code(404).send({ error: "resource not found" });
return res.code(200).send(updatedUser);