mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
fix: remove filter by checked property
This commit is contained in:
parent
aa507a7dbb
commit
d967c60140
@ -41,9 +41,7 @@ const getProducts: ProductsHandlers['getProducts'] = async ({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
const productIds: string[] = cat.productsList
|
const productIds: string[] = cat.productsList.map((p: any) => p.id)
|
||||||
.filter((p: any) => p.checked)
|
|
||||||
.map((p: any) => p.id)
|
|
||||||
if (filter['$and']) {
|
if (filter['$and']) {
|
||||||
filter['$and'].push({
|
filter['$and'].push({
|
||||||
_id: { $in: productIds },
|
_id: { $in: productIds },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user