Merge pull request #397 from Lewuathe/default-limit-100

Limit 100 records as default
This commit is contained in:
Fosco Marotto
2016-02-16 04:51:20 -08:00
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);