fix(medusa): List products by type_id (#2427)

**What**
- Fixes `GET /products` in both admin and store API so they no longer accept the param `type?: string`, but instead accept `type_id?: string[]`

**Why**
- Filtering by type would never return any products as `ptyp_:id` !== `ProductType`.

**Testing**
- Added an integration test for each endpoint.

Closes CORE-695
This commit is contained in:
Kasper Fabricius Kristensen
2022-10-12 18:56:56 +00:00
committed by GitHub
parent 05f921711f
commit 211720f24c
6 changed files with 72 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Changes type to type_id for the list products endpoints in both the Store and Admin API.