mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 18:26:37 +02:00
closes #2687
This commit is contained in:
@@ -113,11 +113,17 @@ function getStatsForSet(set, field, callback) {
|
||||
db.sortedSetCount(set, now - terms.month, now, next);
|
||||
},
|
||||
alltime: function(next) {
|
||||
db.getObjectField('global', field, next);
|
||||
getGlobalField(field, next);
|
||||
}
|
||||
}, callback);
|
||||
}
|
||||
|
||||
function getGlobalField(field, callback) {
|
||||
db.getObjectField('global', field, function(err, count) {
|
||||
callback(err, parseInt(count, 10) || 0);
|
||||
});
|
||||
}
|
||||
|
||||
adminController.categories.active = function(req, res, next) {
|
||||
filterAndRenderCategories(req, res, next, true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user