@@ -17,11 +17,7 @@ export class CheckInService {
1717 private static readonly EVENTS_COLLECTION = 'events' ;
1818 private static readonly USERS_COLLECTION = 'users' ;
1919
20- /**
21- * Validate QR code data using the decodeQRData utility
22- * @param qrString - Raw QR code string data
23- * @returns Validation result with decoded data or error
24- */
20+
2521 static validateQRData ( qrString : string ) : QRValidationResult {
2622 return decodeQRData ( qrString ) ;
2723 }
@@ -30,11 +26,6 @@ export class CheckInService {
3026 * Check in a user to an event
3127 * Verifies RSVP status and adds user to checkedIn array
3228 * Uses arrayUnion for idempotent operations (no duplicates)
33- *
34- * @param userId - User ID from QR code
35- * @param eventId - Event ID from QR code
36- * @returns Check-in result with success status and message
37- *
3829 */
3930 static async checkInUser ( userId : string , eventId : string ) : Promise < CheckInResult > {
4031 try {
@@ -110,9 +101,6 @@ export class CheckInService {
110101
111102 /**
112103 * Get check-in status for a user at an event
113- * @param userId - User ID to check
114- * @param eventId - Event ID to check
115- * @returns True if user is checked in, false otherwise
116104 */
117105 static async getCheckInStatus ( userId : string , eventId : string ) : Promise < boolean > {
118106 try {
@@ -140,8 +128,8 @@ export class CheckInService {
140128
141129 /**
142130 * Get attendance data for an event
143- * @param eventId - Event ID to get attendance for
144- * @returns Attendance data including RSVP and check-in counts
131+ * eventId - Event ID to get attendance for
132+ * Attendance data including RSVP and check-in counts
145133 */
146134 static async getEventAttendance ( eventId : string ) : Promise < AttendanceData | null > {
147135 try {
@@ -181,8 +169,8 @@ export class CheckInService {
181169
182170 /**
183171 * Helper method to get user name from Firestore
184- * @param userId - User ID to look up
185- * @returns User name or null if not found
172+ * userId - User ID to look up
173+ * User name or null if not found
186174 */
187175 private static async getUserName ( userId : string ) : Promise < string | null > {
188176 try {
@@ -208,8 +196,8 @@ export class CheckInService {
208196 * Validate and check in a user from QR code data
209197 * Combines validation and check-in into a single operation
210198 *
211- * @param qrString - Raw QR code string data
212- * @returns Check-in result with success status and message
199+ * qrString - Raw QR code string data
200+ * Check-in result with success status and message
213201 */
214202 static async validateAndCheckIn ( qrString : string ) : Promise < CheckInResult > {
215203 // First validate the QR data
0 commit comments