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ć
2025-08-26 16:35:41 +00:00
committed by GitHub
parent e413cfefc2
commit 71818e43cb
6 changed files with 216 additions and 10 deletions
@@ -225,6 +225,7 @@ export default class ProductModuleService
this.getProductFindConfig_(config),
sharedContext
)
const serializedProducts = await this.baseRepository_.serialize<
ProductTypes.ProductDTO[]
>(products)