Fix get all commet of article

This commit is contained in:
2020-01-30 15:02:52 +01:00
parent 24bc1520f7
commit 5161dca1d5
4 changed files with 48 additions and 7 deletions

View File

@@ -98,6 +98,13 @@ fun Application.module(env: Env = PROD) {
} ?: throw NotFoundException("Comment $values not found")
}
}
convert<ConstitutionRef> {
decode { values, _ ->
values.singleOrNull()?.let {
ConstitutionRef(UUID.fromString(it))
} ?: throw NotFoundException("Constitution $values not found")
}
}
convert<Constitution> {
decode { values, _ ->