in app/domain/image/ImageRepository.scala [65:76]
def images(limit: Int = 20): Future[Option[Seq[ImageRow]]] = {
val action = Image.filter(_.status === AVAILABLE)
.sortBy(_.createdAt.desc)
.take(limit)
.result
db.run(action).map {
case images: Seq[ImageRow] => Some(images)
case _ => None
}.recover {
case e => None
}
}