Skip to content

Commit

Permalink
fix(data-store): take and skip for postgres (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Sep 20, 2023
1 parent d178603 commit fcd2699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/data-store/src/data-store-orm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ function decorateQB(
tableName: string,
input: FindArgs<any>,
): SelectQueryBuilder<any> {
if (input?.skip) qb = qb.skip(input.skip)
if (input?.take) qb = qb.take(input.take)
if (input?.skip) qb = qb.offset(input.skip)
if (input?.take) qb = qb.limit(input.take)

if (input?.order) {
for (const item of input.order) {
Expand Down

0 comments on commit fcd2699

Please sign in to comment.