def cancelReindex()

in app/com/gu/floodgate/reindex/ReindexService.scala [51:58]


  def cancelReindex(id: String,
                    environment: String)(implicit ec: ExecutionContext): Future[Either[CustomError, Happy]] = {
    val contentSourceOrError = contentSourceService.getContentSource(id, environment)
    contentSourceOrError match {
      case Right(cs)   => cancelReindex(contentSource = cs)
      case Left(error) => Future.successful(Left(error))
    }
  }