mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixes #5606
This commit is contained in:
@@ -235,8 +235,8 @@ SocketAdmin.analytics.get = function (socket, data, callback) {
|
||||
analytics.getHourlyStatsForSet('analytics:pageviews', data.until || Date.now(), data.amount, next);
|
||||
}
|
||||
},
|
||||
monthlyPageViews: function (next) {
|
||||
analytics.getMonthlyPageViews(next);
|
||||
summary: function (next) {
|
||||
analytics.getSummary(next);
|
||||
},
|
||||
}, function (err, data) {
|
||||
data.pastDay = data.pageviews.reduce(function (a, b) { return parseInt(a, 10) + parseInt(b, 10); });
|
||||
|
||||
Reference in New Issue
Block a user