in app/domain/image/ImageRepository.scala [46:57]
def updateStatus(id: Long, status: Short, bin: Array[Byte]): Future[Option[Int]] = {
val action = Image.filter(_.id === id)
.map(x => (x.status, x.bin))
.update((status, Some(bin)))
db.run(action).map {
// 正しい挙動(1件のレコードが更新される)
case num: Int if num == 1 => Some(num)
case _ => None
}.recover {
case e => None
}
}