Skip to content

Commit

Permalink
removed log output
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMathiasson committed Oct 30, 2024
1 parent e375120 commit d6aa38f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ export const updateLoggedInUser = async (req, res) => {
return sendDataResponse(res, 404, { id: 'Logged in user not found' })
}

console.log('Logged in user:', loggedInUser.role)
console.log('User ID to update:', userId)

if (loggedInUser.role === 'TEACHER') {
// do the update
} else if (loggedInUser.role === 'STUDENT' && loggedInId === userId) {
Expand Down

0 comments on commit d6aa38f

Please sign in to comment.