read usercount from global object

v1.18.x
barisusakli 8 years ago
parent ae279fe57f
commit 2a33991f0d

@ -128,7 +128,11 @@ function getUsers(set, section, min, max, req, res, next) {
if (byScore) {
db.sortedSetCount(set, min, max, next);
} else {
if (set === 'users:banned' || set === 'users:notvalidated') {
db.sortedSetCard(set, next);
} else {
db.getObjectField('global', 'userCount', next);
}
}
},
users: function (next) {

Loading…
Cancel
Save