Skip to content

Commit

Permalink
points for puzzles
Browse files Browse the repository at this point in the history
  • Loading branch information
divyack2 committed Sep 19, 2024
1 parent 80b6e9c commit 9fb8b80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/puzzlebang/puzzlebang-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ puzzlebangRouter.post(

const attendeeData = await Database.ATTENDEE.findOneAndUpdate(
{ email: requestInfo.email },
{ $addToSet: { puzzlesCompleted: requestInfo.puzzleId } },
{
$addToSet: { puzzlesCompleted: requestInfo.puzzleId },
$inc: { points: 2 },
},
{ new: false }
);

Expand Down

0 comments on commit 9fb8b80

Please sign in to comment.