def imageIds()

in app/domain/image/ImageRepository.scala [78:90]


  def imageIds(limit: Int): Future[Option[Seq[Long]]] = {
    val action = Image.filter(_.status === AVAILABLE)
      .sortBy(_.createdAt.desc)
      .map(p => p.id)
      .take(limit)
      .result
    db.run(action).map {
      case images: Seq[ImageRow] => Some(images)
      case _ => None
    }.recover {
      case e => None
    }
  }