server/controllers/user.js
/**
 * Load user and append to req.
 */
Load user and append to req.
Load user and append to req .
function load(req, res, next, cedula) {
  User.getByCedula(cedula)
    .then((user) => {
      req.user = user; 
      return next();
    })
    .catch(e => next(e));
}
function load ( req , res , next , cedula ) { User . getByCedula ( cedula ) . then ( ( user ) => { req . user = user ; return next ( ) ; } ) . catch ( e => next ( e ) ) ; }
Load user and append to req.
Load user and append to req .
// eslint-disable-line no-param-reassign