async processReview(coachName){ const coachEx = new RegExp(`^${coachName}$`,"i"); let coach = await dataService.getStandings({league:/rebbl off season/i, competition:/REBBL's Christmas Cracker/i, coach:{$regex:coachEx}}); let threshold = Date.now(); threshold.setHours(threshold.getHours()-24); if (!coach.firstReview || coach.firstReview < threshold){ coach.firstReview = Date.now(); coach.currentReviewCount = 1; coach.totalReviewCount = (coach.totalReviewCount||0) +1; } else if (coach.firstReview > threshold && coach.currentReviewCount < 3 ){ coach.currentReviewCount++; coach.totalReviewCount++; } }