Skip to content

Commit

Permalink
fix(repositories): mongo upgrade, skip must be to 0 by default, not n…
Browse files Browse the repository at this point in the history
…ull 🐛 (#1780)
  • Loading branch information
PierreBrisorgueil authored Feb 16, 2022
1 parent d0499c8 commit 10f009a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/users/repositories/user.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.list = (search, page, perPage) => {
: {};
return User.find(filter)
.limit(perPage)
.skip(perPage * page)
.skip(perPage * page || 0)
.select('-password -providerData')
.sort('-createdAt')
.exec();
Expand Down

0 comments on commit 10f009a

Please sign in to comment.