Skip to content

Commit

Permalink
Merge pull request #162 from ReflectionsProjections/dev/alex/point-ch…
Browse files Browse the repository at this point in the history
…ange
  • Loading branch information
aletya authored Sep 19, 2024
2 parents 80b6e9c + 9fb8b80 commit d085c20
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 d085c20

Please sign in to comment.