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 authored and GitHub committed 2025-05-19 18:06:28 +00:00
1 parent b9a51e217d
commit 32be40a2c0
2 files changed
+6

No files matched your search

@@ -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,
})