Fixing issues discovered by test cases.

This commit is contained in:
mike12345567 2021-09-03 11:06:44 +01:00
parent 8c3eb30ab1
commit 0b0da47778
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ function buildRead(knex: Knex, json: QueryJson, limit: number): KnexQuery {
query = query.orderBy(key, direction) query = query.orderBy(key, direction)
} }
} }
let foundLimit = BASE_LIMIT || limit let foundLimit = limit || BASE_LIMIT
// handle pagination // handle pagination
if (paginate && paginate.page && paginate.limit) { if (paginate && paginate.page && paginate.limit) {
// @ts-ignore // @ts-ignore