Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aletya committed Sep 18, 2024
1 parent 8c5452a commit d224f1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/checkin/checkin-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ async function updateAttendanceRecords(eventId: string, userId: string) {
{ $addToSet: { eventsAttended: eventId } },
{ new: true, upsert: true }
),
Database.EVENTS.findOneAndUpdate(
{ eventId },
{ $inc: { attendanceCount: 1 } },
{ new: true, upsert: true }
),
]);
}

Expand Down

0 comments on commit d224f1a

Please sign in to comment.