Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed Apr 29, 2024
1 parent 1ee4bc9 commit e6a9563
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions users/userservice/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ let UserController = {
for(const id of userIds){
if(!isValidUuidV4(id)){
throw new Error(`Invalid UUID provided`);
} else {
const user = await User.findOne({ uuid: id });
users.push(user);
}
const user = await User.findOne({ uuid: id });
users.push(user);
}
res.json(users);
} catch(error){
Expand Down

0 comments on commit e6a9563

Please sign in to comment.