fix sad untyped equality check

This commit is contained in:
Thibault Duplessis 2017-01-21 14:56:51 +01:00
parent 61230f25f3
commit 4fb35421e3

View file

@ -124,7 +124,7 @@ object Study extends LilaController {
def chapterMeta(id: String, chapterId: String) = Open { implicit ctx =>
env.chapterRepo.byId(chapterId).map {
_.filter(_.studyId == id) ?? { chapter =>
_.filter(_.studyId.value == id) ?? { chapter =>
Ok(env.jsonView.chapterConfig(chapter))
}
}