Fixing issues discovered by test cases.
This commit is contained in:
parent
8c3eb30ab1
commit
0b0da47778
|
@ -170,7 +170,7 @@ function buildRead(knex: Knex, json: QueryJson, limit: number): KnexQuery {
|
|||
query = query.orderBy(key, direction)
|
||||
}
|
||||
}
|
||||
let foundLimit = BASE_LIMIT || limit
|
||||
let foundLimit = limit || BASE_LIMIT
|
||||
// handle pagination
|
||||
if (paginate && paginate.page && paginate.limit) {
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Reference in New Issue