diff --git a/src/services/checkin/checkin-utils.ts b/src/services/checkin/checkin-utils.ts index df88fa4..c85eacd 100644 --- a/src/services/checkin/checkin-utils.ts +++ b/src/services/checkin/checkin-utils.ts @@ -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 } + ), ]); }