fix(medusa): Performance improvement for variant availability (#3921)

**What**
- refactor availability invocations to only do one call to the inventory module

@adrien2p would love to run through some tests of this with you and get your take on approach
This commit is contained in:
Philip Korsholm authored and GitHub committed 2023-05-03 09:17:55 +00:00
1 parent f8532cb7fd
commit 9838723192
3 files changed
+98 -22

No files matched your search

@@ -91,6 +91,7 @@ describe("List Variants", () => {
stocked_quantity: 10,
})
})
it("Decorates inventory quantities when listing variants", async () => {
const api = useApi()