private def isMatchEnded()

in registration/app/registration/auditor/FootballMatchAuditor.scala [41:50]


  private def isMatchEnded(matchId: String)(implicit ec: ExecutionContext): Future[Boolean] = {
    cachedMatchStatus(matchId) map {
      case matchStatus if matchEndedStatuses contains matchStatus => true
      case _ => false
    } recover {
      case _ =>
        logger.error(s"Unable to determine match status of $matchId.  Assuming that it is in the future")
        false
    }
  }