ES6 cosmetics

This commit is contained in:
Daniel García Aubert 2018-03-01 15:42:46 +01:00
parent b0c924ca03
commit 3caa1d9c4a

View File

@ -1,7 +1,7 @@
var CdbRequest = require('../models/cdb_request');
const CdbRequest = require('../models/cdb_request');
module.exports = function user () {
var cdbRequest = new CdbRequest();
const cdbRequest = new CdbRequest();
return function userMiddleware(req, res, next) {
res.locals.user = cdbRequest.userByReq(req);