We need the following additional db adapters to configure our orders:
-
-
-
-
- Find the order with id equal to the passed in id
- Update the price or quantity as necessary
- remove the single identified order_products from database
"Do what must be done Lord [Code]r. Do not hesitate, show no mercy"
We need the following additional db adapters to configure our orders:
getOrderProductById - > getOrderProductById(id) - return the order_products
addProductToOrder - > addProductToOrder({ orderId, productId, price, quantity })
"Do what must be done Lord [Code]r. Do not hesitate, show no mercy"