fix: shop detail

This commit is contained in:
morteza-mortezai
2025-09-28 14:43:38 +03:30
parent 4be376f7ea
commit 95933810cf
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -1649,6 +1649,17 @@ class OrderItemRepo extends BaseRepository<IOrderItem> {
shop: { $in: shopIds },
},
},
{
$lookup: {
from: "shops",
localField: "shop",
foreignField: "_id",
as: "shop",
},
},
{
$unwind: "$shop",
},
{
$lookup: {
from: "orders",