mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
remove old module.exports from server aswell
This commit is contained in:
@@ -3,7 +3,7 @@ import nconf from 'nconf';
|
||||
|
||||
const MAINTENANCE_MODE = nconf.get('MAINTENANCE_MODE');
|
||||
|
||||
module.exports = function maintenanceMode (req, res, next) {
|
||||
export default function maintenanceMode (req, res, next) {
|
||||
if (MAINTENANCE_MODE !== 'true') return next();
|
||||
|
||||
getUserLanguage(req, res, (err) => {
|
||||
@@ -28,4 +28,4 @@ module.exports = function maintenanceMode (req, res, next) {
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user