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
2023-02-28 17:09:20 +01:00
committed by GitHub
parent 5eb61fa0ef
commit d61d6c7b7f
3 changed files with 68 additions and 29 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): Account for multiple inventory items when getting inventory