attend
marks an attendee as interested in a session from the attendee and session's ids.
The attendee's id is most likely to come from an AuthToken
's sub
property.
await attendanceRepo.attend(5, 'session-a')
getSessionAttendance
create a map of session id to the number of attendees interested in that session.
const sessionAttendance = await attendanceRepo.getSessionAttendance()
sessionAttendance.get('session-a') // 5
Generated using TypeDoc
AttendanceRepository
provides logic for storing and retrieving session interest in the database.