@@ -102,8 +102,6 @@ export default class AttendanceService {
102102 attendees : { connect : { userId : userWithSettings . userId } }
103103 }
104104 } ) ;
105-
106- console . log ( `Attendance recorded: ${ userWithSettings . firstName } ${ userWithSettings . lastName } (${ slackUserId } )` ) ;
107105 }
108106
109107 static async closeAttendance ( meetingAttendanceId : string ) : Promise < void > {
@@ -142,20 +140,6 @@ export default class AttendanceService {
142140 } ) ;
143141 }
144142
145- static async cleanupStaleAttendances ( organizationId ?: string ) : Promise < void > {
146- const oneHourAgo = new Date ( Date . now ( ) - 3600000 ) ;
147-
148- const staleAttendances = await prisma . meeting_Attendance . findMany ( {
149- where : {
150- closedAt : null ,
151- openedAt : { lt : oneHourAgo } ,
152- ...( organizationId ? { organizationId } : { } )
153- }
154- } ) ;
155-
156- await Promise . all ( staleAttendances . map ( ( a ) => AttendanceService . closeAttendance ( a . meetingAttendanceId ) ) ) ;
157- }
158-
159143 static async getOngoingAttendance ( teamId : string , organization : Organization ) : Promise < MeetingAttendance | null > {
160144 const team = await prisma . team . findUnique ( { where : { teamId } } ) ;
161145
@@ -174,8 +158,6 @@ export default class AttendanceService {
174158 static async closeOngoingAttendance ( teamId : string , submitter : User , organization : Organization ) : Promise < void > {
175159 const team = await prisma . team . findUnique ( { where : { teamId } } ) ;
176160
177- console . log ( submitter ) ;
178-
179161 if ( ! team || team . organizationId !== organization . organizationId ) {
180162 throw new NotFoundException ( 'Team' , teamId ) ;
181163 }
0 commit comments