Skip to content

Commit

Permalink
Merge pull request #37 from dh-center/SOROKA-135
Browse files Browse the repository at this point in the history
SOROKA-135: paginate count fix
  • Loading branch information
RomanKuzovlev authored Oct 6, 2022
2 parents 65b6e15 + 2e68792 commit 7101c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/paginate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const paginate = async (model: any, filters = {}, limit?: number, offset = 0) => {
const queryParams: any = { where: filters, offset }
const queryParams: any = { where: filters, offset, distinct: true, col: "Card.id" }

if (limit) {
queryParams.limit = limit
Expand Down

0 comments on commit 7101c29

Please sign in to comment.