fix(medusa): fetching a product without a category with categories filed passed (#13020)
**What** - adding `categories` to `fields` param would return 404 for an existing product if the product was not associated with a category --- CLOSES CMRC-1046
This commit is contained in:
1 parent
e413cfefc2
commit
71818e43cb
6 files changed
+216
-10
No files matched your search
@@ -225,6 +225,7 @@ export default class ProductModuleService
|
||||
this.getProductFindConfig_(config),
|
||||
sharedContext
|
||||
)
|
||||
|
||||
const serializedProducts = await this.baseRepository_.serialize<
|
||||
ProductTypes.ProductDTO[]
|
||||
>(products)
|
||||
|
||||
Reference in new issue
Block a user