Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros committed Jun 4, 2022
1 parent 0cf4950 commit 846eedc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ actual open class KVServiceManager<T : Any> 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<Injector>(KV_INJECTOR_KEY)
Expand Down

0 comments on commit 846eedc

Please sign in to comment.