(req, res)
| 36 | |
| 37 | // decrement item quantity by 1 |
| 38 | const decreaseItemQuantity = async (req, res) => { |
| 39 | const { product_id } = req.body; |
| 40 | const cart_id = req.user.cart_id; |
| 41 | |
| 42 | const cart = await cartService.decreaseQuantity({ cart_id, product_id }); |
| 43 | res.json(cart); |
| 44 | }; |
| 45 | |
| 46 | module.exports = { |
| 47 | getCart, |
nothing calls this directly
no outgoing calls
no test coverage detected