server/controllers/parking.js
/**
 * Load vehicle and append to req.
 */
Load vehicle and append to req.
Load vehicle and append to req .
function load(req, res, next, placa) {
  Parking.getByPlaca(placa)
    .then((vehicle) => {
      req.vehicle = vehicle; 
      return next();
    })
    .catch(e => next(e));
}
function load ( req , res , next , placa ) { Parking . getByPlaca ( placa ) . then ( ( vehicle ) => { req . vehicle = vehicle ; return next ( ) ; } ) . catch ( e => next ( e ) ) ; }
Load vehicle and append to req.
Load vehicle and append to req .
// eslint-disable-line no-param-reassign