From 846eedce0bc7cf7ec1bb814aad256b456981a61c Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 4 Jun 2022 07:26:29 +0200 Subject: [PATCH] Fix deprecation --- .../src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvision-modules/kvision-server-vertx/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-vertx/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt index 71a8c47b4f2..91668f82480 100644 --- a/kvision-modules/kvision-server-vertx/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt +++ b/kvision-modules/kvision-server-vertx/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt @@ -68,7 +68,7 @@ actual open class KVServiceManager actual constructor(val serviceClass: val jsonRpcRequest = if (method == HttpMethod.GET) { JsonRpcRequest(ctx.request().getParam("id").toInt(), "", listOf()) } else { - ctx.bodyAsJson.mapTo(JsonRpcRequest::class.java) + ctx.body().asJsonObject().mapTo(JsonRpcRequest::class.java) } val injector = ctx.get(KV_INJECTOR_KEY)