Added pagination to people management in admin panel

This commit is contained in:
Thuan Pham Quoc 2017-11-08 11:27:59 +07:00
parent 1f6545e411
commit 3bead1bf78
4 changed files with 55 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Meteor.publish('people', function () {
return Meteor.users.find({}, {fields:{}});
Meteor.publish('people', (limit) => {
check(limit, Number);
return Users.find({}, {
limit,
sort: {createdAt: -1},
});
});