Skip to content

Commit

Permalink
fix: prevent duplicate team members
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Empain committed Jan 7, 2021
1 parent bdcee5a commit 3eeaeaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/teams/handlers/members/add-member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function handler(req: Request, res: Response): Promise<void> {
$ne: memberId,
},
}, {
$push: {
$addToSet: {
members: memberId,
},
});
Expand Down

0 comments on commit 3eeaeaa

Please sign in to comment.