Skip to content

Commit

Permalink
Merge pull request #21 from KinanaDB/userLogin
Browse files Browse the repository at this point in the history
grant update
  • Loading branch information
Mohamed-khattab authored Feb 23, 2024
2 parents 66ee8d4 + 4b632bc commit b3e9af2
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 b3e9af2

Please sign in to comment.