Limit 100 records as default

This commit is contained in:
Lewuathe
2016-02-13 17:44:43 +09:00
parent 2a200fc718
commit ce4f13f3bf
2 changed files with 18 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ export class ClassesRouter {
}
if (body.limit) {
options.limit = Number(body.limit);
} else {
options.limit = Number(100);
}
if (body.order) {
options.order = String(body.order);