Skip to content

Commit

Permalink
Merge pull request #180 from nestjsx/fix/179-pagination
Browse files Browse the repository at this point in the history
fix(Pagination): Fixed pageCount number
  • Loading branch information
bashleigh authored Jul 20, 2019
2 parents d27a1d6 + 6886fc9 commit 06b5d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crud/src/services/crud-service.abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export abstract class CrudService<T> {
page: Math.floor(offset / limit) + 1,
pageCount:
limit && total
? Math.round(total / limit)
? Math.ceil(total / limit)
: /* istanbul ignore next line */
undefined,
};
Expand Down

0 comments on commit 06b5d46

Please sign in to comment.