Skip to content

Commit

Permalink
fix paginate index.ts (#64)
Browse files Browse the repository at this point in the history
fix paginateRepository no total
  • Loading branch information
notbucai authored Sep 6, 2024
1 parent 5e69bcc commit 3eb6bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/paginate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function paginateRepository<T>(
take: limit,
...searchOptions,
}),
undefined,
repository.count(searchOptions),
]

const [items, total] = await Promise.all(promises)
Expand Down

0 comments on commit 3eb6bea

Please sign in to comment.