Skip to content

Commit

Permalink
grant update
Browse files Browse the repository at this point in the history
  • Loading branch information
jailannashaat committed Feb 23, 2024
1 parent db42415 commit 4b632bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const grantController = async (req, res) => {
const existingMember = await memberExist(team_id, user_id);

if (!existingMember) {
console.log('No team member with the given user id');
return res.status(404).json({ message: "No team member with the given user id" });
}
await updateMember(team_id, user_id);
console.log('Successfully updated the role');
res.status(200).json({ message: `Successfully updated the role` });
};

0 comments on commit 4b632bc

Please sign in to comment.