fix(medusa): Remove shipping on updates to cart.items (#4715)

* rm shipping on line item updates

* Add tests

* remove verbose flag

* Create real-items-rhyme.md
This commit is contained in:
Oli Juhl authored and GitHub committed 2023-08-08 14:53:47 +02:00
1 parent 0cba4d647d
commit a2d7540e40
6 files changed
+170 -66

No files matched your search

@@ -73,9 +73,9 @@ export default async (req, res) => {
if (validated.quantity === 0) {
await cartService.withTransaction(m).removeLineItem(id, line_id)
} else {
const cart = await cartService
.withTransaction(m)
.retrieve(id, { relations: ["items", "items.variant"] })
const cart = await cartService.withTransaction(m).retrieve(id, {
relations: ["items", "items.variant", "shipping_methods"],
})
const existing = cart.items.find((i) => i.id === line_id)
if (!existing) {