Fixing issues discovered by test cases.

This commit is contained in:
mike12345567 2021-09-03 11:06:44 +01:00
parent c64fb81749
commit f9fd725307
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