fix(medusa): add estimate count to admin products (#12467)

what:
 * Add `estimate_count` property to `/admin/products` endpoint when index engine FF is on
This commit is contained in:
Carlos R. L. Rodrigues
2025-05-19 15:06:28 -03:00
committed by GitHub
parent b9a51e217d
commit 32be40a2c0
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): add estimate count property on admin/products

View File

@@ -80,6 +80,7 @@ async function getProductsWithIndexEngine(
res.json({
products: products.map(remapProductResponse),
count: metadata!.estimate_count,
estimate_count: metadata!.estimate_count,
offset: metadata!.skip,
limit: metadata!.take,
})