Skip to content

Commit

Permalink
Merge pull request #161 from ReflectionsProjections/dev/alex/attendan…
Browse files Browse the repository at this point in the history
…ce-count

hotfix
  • Loading branch information
aletya authored Sep 18, 2024
2 parents 8c5452a + d224f1a commit 80b6e9c
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 80b6e9c

Please sign in to comment.