src/server/controllers/inventory-controller.js
/**
* Load inventory and append to req.
*/
Load inventory and append to req.
Load inventory and append to req .
function load(req, res, next, id) {
    keystone.list('Inventory').model.findById(id)
    .then((inventory) => {
        req.inventory = inventory;
        return next();
    })
    .catch(e => next(e));
}
function load ( req , res , next , id ) { keystone . list ( 'Inventory' ) . model . findById ( id ) . then ( ( inventory ) => { req . inventory = inventory ; return next ( ) ; } ) . catch ( e => next ( e ) ) ; }
Load inventory and append to req.
Load inventory and append to req .