update dex2jar

This commit is contained in:
Aria Moradi
2021-03-16 15:44:50 +03:30
parent 1128f40bac
commit 4e699e4f5a
31 changed files with 69 additions and 2 deletions
@@ -227,7 +227,7 @@ class Main {
// category modification
app.patch("/api/v1/category/:categoryId") { ctx ->
val categoryId = ctx.pathParam("categoryId")!!.toInt()
val categoryId = ctx.pathParam("categoryId").toInt()
val name = ctx.formParam("name")
val isLanding = if (ctx.formParam("isLanding") != null) ctx.formParam("isLanding")?.toBoolean() else null
updateCategory(categoryId, name, isLanding)