Skip to content

Commit

Permalink
fix(maintenance): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed May 19, 2016
1 parent 1165a39 commit 22cbba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/server/middlewares/api-v3/maintenanceMode.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { getUserLanguage, } from './language';
import { getUserLanguage } from './language';
import nconf from 'nconf';

const MAINTENANCE_MODE = nconf.get('MAINTENANCE_MODE');

module.exports = function maintenanceMode (req, res, next) {
if (MAINTENANCE_MODE !== 'true') return next();

getUserLanguage(req, res, function (err) {
getUserLanguage(req, res, function maintenanceMiddleware (err) {
if (err) return next(err);

const MAINTENANCE_START = nconf.get('MAINTENANCE_START');
Expand All @@ -29,7 +29,7 @@ module.exports = function maintenanceMode (req, res, next) {
}
} else {
return res.status(503).send({
error: 'Maintenance',
error: 'Maintenance',
message: 'Server offline for maintenance.',
});
}
Expand Down

0 comments on commit 22cbba1

Please sign in to comment.