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:
Frane Polić authored and GitHub committed 2025-08-26 16:35:41 +00:00
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)