def findRelevantSponsorship()

in src/main/scala/com/gu/commercial/branding/SponsorshipHelper.scala [22:28]


  def findRelevantSponsorship(
    sponsorships: Seq[Sponsorship],
    edition: String,
    publishedDate: Option[CapiDateTime]
  ): Option[Sponsorship] = {
    sponsorships.find(s => isTargetingEdition(s, edition) && isTargetingDate(s, publishedDate))
  }