mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -39,8 +39,8 @@ Analytics.get = function (socket, data, callback) {
|
||||
summary: function (next) {
|
||||
analytics.getSummary(next);
|
||||
},
|
||||
}, function (err, data) {
|
||||
data.pastDay = data.pageviews.reduce(function (a, b) { return parseInt(a, 10) + parseInt(b, 10); });
|
||||
}, (err, data) => {
|
||||
data.pastDay = data.pageviews.reduce((a, b) => parseInt(a, 10) + parseInt(b, 10));
|
||||
data.pageviews[data.pageviews.length - 1] = parseInt(data.pageviews[data.pageviews.length - 1], 10) + analytics.getUnwrittenPageviews();
|
||||
callback(err, data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user