chore(): Improve cart update line items (#11666)

**What**
Currently, we are potentially providing an array of selector/data leading to fetching data sequentially before running on update which will fetch data again in batch and perform the update. Now we can pass the data directly which includes the id already and only perform one bulk fetch + one bulk update.

This pr also include a fix on the inventory validation, currently, only the item to update inventory is being checked, with this pr we also check the inventory for the items that needs to be created
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-03-03 10:06:40 +00:00
1 parent 39597b6b52
commit d1efad9bf0
10 files changed
+188 -60

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
---
"@medusajs/cart": patch
"@medusajs/core-flows": patch
"@medusajs/types": patch
---
chore(): Improve cart update line items