small change
This commit is contained in:
parent
a6d632e663
commit
24018d4bdf
@ -731,7 +731,8 @@ export const getCancelledOrdersAdmin = async (req, res) => {
|
||||
.limit(limit)
|
||||
.populate({ path: "orderItem.productId" })
|
||||
.populate({ path: "invoices" })
|
||||
.populate({ path: "addedBy" });
|
||||
.populate({ path: "addedBy" })
|
||||
.sort({ createdAt: -1 });
|
||||
|
||||
if (cancelledOrders.length > 0) {
|
||||
return res.status(200).json({ cancelledOrders, totalOrders });
|
||||
|
Loading…
Reference in New Issue
Block a user