Merge branch 'master' into protobuf

This commit is contained in:
Aria Moradi
2021-08-18 00:28:42 +04:30
19 changed files with 63 additions and 43 deletions

View File

@@ -54,10 +54,9 @@ object LibraryController {
/** category re-ordering */
fun categoryReorder(ctx: Context) {
val categoryId = ctx.pathParam("categoryId").toInt()
val from = ctx.formParam("from")!!.toInt()
val to = ctx.formParam("to")!!.toInt()
Category.reorderCategory(categoryId, from, to)
Category.reorderCategory(from, to)
ctx.status(200)
}
}