refactor getUserLanguage, automatically apply getUserLanguage and cron middlewares where needed

This commit is contained in:
Matteo Pagliazzi
2016-04-14 13:30:58 +02:00
parent a590a66c47
commit bc9f2b81e7
28 changed files with 507 additions and 431 deletions

View File

@@ -271,7 +271,6 @@ function cron (options = {}) {
return _progress;
}
// TODO check that it's used everywhere
module.exports = function cronMiddleware (req, res, next) {
let user = res.locals.user;
let analytics = res.analytics;