def getPersonal()

in api/src/main/scala/com/gu/core/store/store.scala [122:128]


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