This commit is contained in:
parent
10d305689d
commit
81e1ef6b39
@ -97,8 +97,10 @@ class InputServiceServer {
|
|||||||
|
|
||||||
val tag = UUID.randomUUID().toString()
|
val tag = UUID.randomUUID().toString()
|
||||||
|
|
||||||
|
val currentApiObject = ApiObject(tag = tag, date = description!!.date, device_id = description!!.device_id)
|
||||||
|
|
||||||
transaction {
|
transaction {
|
||||||
resultObjectService.addOne(ApiObject(tag = tag, date = description!!.date, device_id = description!!.device_id))
|
resultObjectService.addOne(currentApiObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
connection.confirmChannel {
|
connection.confirmChannel {
|
||||||
@ -107,7 +109,7 @@ class InputServiceServer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
call.respond(resultObjectService.getAllInputObjects())
|
call.respond(currentApiObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
get("/sample/{tagID}") {
|
get("/sample/{tagID}") {
|
||||||
|
Loading…
Reference in New Issue
Block a user