mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
read usercount from global object
This commit is contained in:
@@ -128,7 +128,11 @@ function getUsers(set, section, min, max, req, res, next) {
|
|||||||
if (byScore) {
|
if (byScore) {
|
||||||
db.sortedSetCount(set, min, max, next);
|
db.sortedSetCount(set, min, max, next);
|
||||||
} else {
|
} else {
|
||||||
db.sortedSetCard(set, next);
|
if (set === 'users:banned' || set === 'users:notvalidated') {
|
||||||
|
db.sortedSetCard(set, next);
|
||||||
|
} else {
|
||||||
|
db.getObjectField('global', 'userCount', next);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
users: function (next) {
|
users: function (next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user