fix: post count

This commit is contained in:
Barış Soner Uşaklı
2024-06-13 11:08:23 -04:00
parent 578a53dd8e
commit badb7e2c05

View File

@@ -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'),
]);