use req.uid 👍

v1.18.x
barisusakli 9 years ago
parent 8f408faf46
commit a0f2e8a8ec

@ -53,7 +53,7 @@ middleware.pageView = function(req, res, next) {
analytics.pageView({ analytics.pageView({
ip: req.ip, ip: req.ip,
path: req.path, path: req.path,
uid: req.hasOwnProperty('user') && req.user.hasOwnProperty('uid') ? parseInt(req.user.uid, 10) : 0 uid: req.uid
}); });
plugins.fireHook('action:middleware.pageView', {req: req}); plugins.fireHook('action:middleware.pageView', {req: req});

Loading…
Cancel
Save