Skip to content

Commit

Permalink
fix(users): admin pagination start 🐛 (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil authored Apr 10, 2022
1 parent c9982c5 commit 064916a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/users/services/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.removeSensitive = (user, conf) => {
* @return {Promise} users selected
*/
exports.list = async (search, page, perPage) => {
const result = await UserRepository.list(search, page || 1, perPage || 20);
const result = await UserRepository.list(search, page || 0, perPage || 20);
return Promise.resolve(result.map((user) => this.removeSensitive(user)));
};

Expand Down

0 comments on commit 064916a

Please sign in to comment.