module.exports = async (req, res) => {
if(!req.cart) {
const err = new Error('Session has no cart')
err.status = 400
throw err;
}
return 'next'