Skip to content

Commit

Permalink
fix: update mongo query
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Apr 10, 2024
1 parent bf0c551 commit 4cf52c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/commands/slashCommands/addToRoulette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ async function addMemberToRoulette(
guildID,
},
// Update collection just with the new member
{ $push: { 'roulette.rouletteAdmins': memberId } }
{ $addToSet: { 'roulette.rouletteAdmins': memberId } }
);
}

0 comments on commit 4cf52c6

Please sign in to comment.