diff --git a/src/services/puzzlebang/puzzlebang-router.ts b/src/services/puzzlebang/puzzlebang-router.ts index a4f1a7b..a9c2eb5 100644 --- a/src/services/puzzlebang/puzzlebang-router.ts +++ b/src/services/puzzlebang/puzzlebang-router.ts @@ -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 } );