fix(medusa): Account for multiple inventory items in get-inventory (#3094)

* use pvi service method instead of inventory service method to get quantity for sales channel

* save a few invocations

* rename quantity

* omit || 0

* add changeset

* extract method for retrieving variant inventory quantity

* update pr with feedback
This commit is contained in:
Philip Korsholm authored and GitHub committed 2023-02-28 17:09:20 +01:00
1 parent 5eb61fa0ef
commit d61d6c7b7f
3 files changed
+68 -29

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): Account for multiple inventory items when getting inventory