use uuid class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-22 00:52:31 +02:00
parent 938348cb60
commit 5e443345af
3 changed files with 5 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ class InputServiceServer {
get("/sample/{tagID}") {
val tagID = call.parameters["tagID"] ?: error(HttpStatusCode.NotAcceptable)
val resultObject = resultObjectService.getInputObjectbyTag(tagID) ?: call.respond(HttpStatusCode.NotFound)
val resultObject = resultObjectService.getInputObjectbyTag(UUID.fromString(tagID)) ?: call.respond(HttpStatusCode.NotFound)
call.respond(resultObject)
}