diff --git a/src/modules/product/Repository/product.ts b/src/modules/product/Repository/product.ts index 1d88f2b..a5c6e23 100644 --- a/src/modules/product/Repository/product.ts +++ b/src/modules/product/Repository/product.ts @@ -1673,7 +1673,8 @@ export class ProductRepository extends BaseRepository { { $match: { $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], }, }, },