mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 21:21:21 +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
|
||||
.filter((p: any) => p.checked)
|
||||
.map((p: any) => p.id)
|
||||
const productIds: string[] = cat.productsList.map((p: any) => p.id)
|
||||
if (filter['$and']) {
|
||||
filter['$and'].push({
|
||||
_id: { $in: productIds },
|
||||
|
Loading…
x
Reference in New Issue
Block a user