def getActive()

in api/src/main/scala/com/gu/core/store/store.scala [113:120]


  def getActive(user: User): Either[Error, FoundAvatar] = {
    for {
      found <- get(user)
      avatar <- found.body.find(_.isActive).toRight(
        avatarNotFound(List(s"No active avatar found for user: ${user.id}."))
      )
    } yield FoundAvatar(avatar)
  }