1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Fixing issues discovered by test cases.

This commit is contained in:
mike12345567 2021-09-03 11:06:44 +01:00
parent 8c3eb30ab1
commit 0b0da47778

View file

@ -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