diff --git a/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt b/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt index dbce23a..d879338 100644 --- a/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt +++ b/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt @@ -59,7 +59,7 @@ fun Application.configureArModelRouting() { call.sendUnauthorized() return@put } - val body = call.receive() + val body = call.receive().toArModel() val id = call.parameters["id"].toString() val isSuccess = modelService.updateById(id, body) call.sendSuccess(mapOf("success" to isSuccess))