mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
refactor getUserLanguage, automatically apply getUserLanguage and cron middlewares where needed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user