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:
1 parent
b9a51e217d
commit
32be40a2c0
2 files changed
+6
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa): add estimate count property on admin/products
|
||||||
@@ -80,6 +80,7 @@ async function getProductsWithIndexEngine(
|
|||||||
res.json({
|
res.json({
|
||||||
products: products.map(remapProductResponse),
|
products: products.map(remapProductResponse),
|
||||||
count: metadata!.estimate_count,
|
count: metadata!.estimate_count,
|
||||||
|
estimate_count: metadata!.estimate_count,
|
||||||
offset: metadata!.skip,
|
offset: metadata!.skip,
|
||||||
limit: metadata!.take,
|
limit: metadata!.take,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user