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:
committed by
GitHub
parent
b9a51e217d
commit
32be40a2c0
5
.changeset/shaggy-ghosts-taste.md
Normal file
5
.changeset/shaggy-ghosts-taste.md
Normal file
@@ -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({
|
||||
products: products.map(remapProductResponse),
|
||||
count: metadata!.estimate_count,
|
||||
estimate_count: metadata!.estimate_count,
|
||||
offset: metadata!.skip,
|
||||
limit: metadata!.take,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user