From 0b0da477786c5cbd322b382afaa2a1d02b325619 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 3 Sep 2021 11:06:44 +0100 Subject: [PATCH] Fixing issues discovered by test cases. --- packages/server/src/integrations/base/sql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/integrations/base/sql.ts b/packages/server/src/integrations/base/sql.ts index 40a0c68b1c..b59bac5a5a 100644 --- a/packages/server/src/integrations/base/sql.ts +++ b/packages/server/src/integrations/base/sql.ts @@ -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