mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: post count
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = function (app, middleware, controllers) {
|
||||
const sixMonthsAgo = addMonths(new Date(), -6);
|
||||
|
||||
const [{ postCount, userCount }, activeMonth, activeHalfyear] = await Promise.all([
|
||||
db.getObjectFields('global', ['userCount', 'userCount']),
|
||||
db.getObjectFields('global', ['postCount', 'userCount']),
|
||||
db.sortedSetCount('users:online', oneMonthAgo.getTime(), '+inf'),
|
||||
db.sortedSetCount('users:online', sixMonthsAgo.getTime(), '+inf'),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user