fix: remove filter by checked property

This commit is contained in:
Gérard Le Cloerec 2021-04-12 15:18:11 +02:00
parent aa507a7dbb
commit d967c60140

View File

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