fix: #11756, fix unique visitor stats in acp table

This commit is contained in:
Barış Soner Uşaklı
2023-06-26 09:03:29 -04:00
parent 8744e4121e
commit e45f513bfe
2 changed files with 11 additions and 7 deletions

View File

@@ -128,12 +128,13 @@ async function getStats() {
}
let results = await Promise.all([
getStatsForSet('ip:recent', 'uniqueIPCount'),
getStatsFromAnalytics('uniquevisitors', 'uniqueIPCount'),
getStatsFromAnalytics('logins', 'loginCount'),
getStatsForSet('users:joindate', 'userCount'),
getStatsForSet('posts:pid', 'postCount'),
getStatsForSet('topics:tid', 'topicCount'),
]);
results[0].name = '[[admin/dashboard:unique-visitors]]';
results[1].name = '[[admin/dashboard:logins]]';