This commit is contained in:
Julian Lam
2017-05-11 16:53:30 -04:00
parent 51a85031f7
commit 816809ce3c
5 changed files with 28 additions and 34 deletions

View File

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