def isValidBundle()

in src/main/scala/com/gu/octopusthrift/services/PayloadValidator.scala [32:38]


  def isValidBundle(bundle: OctopusBundle): Boolean = {
    logger.info(s"Validating bundle for ${bundle.composerId}: $bundle")
    logger.info(s"Body text for ${bundle.composerId}: ${ArticleFinder.findBodyText(bundle)}")
    val hasComposerId = bundle.composerId.isDefined
    val hasBodyText = ArticleFinder.findBodyText(bundle).isDefined
    hasComposerId && hasBodyText
  }