ES6 cosmetics
This commit is contained in:
parent
b0c924ca03
commit
3caa1d9c4a
@ -1,7 +1,7 @@
|
|||||||
var CdbRequest = require('../models/cdb_request');
|
const CdbRequest = require('../models/cdb_request');
|
||||||
|
|
||||||
module.exports = function user () {
|
module.exports = function user () {
|
||||||
var cdbRequest = new CdbRequest();
|
const cdbRequest = new CdbRequest();
|
||||||
|
|
||||||
return function userMiddleware(req, res, next) {
|
return function userMiddleware(req, res, next) {
|
||||||
res.locals.user = cdbRequest.userByReq(req);
|
res.locals.user = cdbRequest.userByReq(req);
|
||||||
|
Loading…
Reference in New Issue
Block a user