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