v1.18.x
barisusakli 10 years ago
parent 255f50343c
commit 25ccc573c0

@ -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);
};

Loading…
Cancel
Save