fix : in category page, send products that have at least on variant
This commit is contained in:
@@ -1673,7 +1673,8 @@ export class ProductRepository extends BaseRepository<IProduct> {
|
|||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
$expr: {
|
$expr: {
|
||||||
$or: [{ $gt: [{ $size: { $ifNull: ["$variants", []] } }, 0] }, { $eq: ["$category.theme", "noColor_noSize"] }],
|
// $or: [{ $gt: [{ $size: { $ifNull: ["$variants", []] } }, 0] }, { $eq: ["$category.theme", "noColor_noSize"] }],
|
||||||
|
$gt: [{ $size: { $ifNull: ["$variants", []] } }, 0],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user