dispatch and delivered and processing
This commit is contained in:
parent
44e8e712a7
commit
0f2330db13
@ -736,6 +736,7 @@ export const getDispatchedOrdersAdmin = async (req, res) => {
|
||||
.skip(skip)
|
||||
.limit(limit)
|
||||
.populate({ path: "orderItem.productId" })
|
||||
.populate({ path: "invoices" })
|
||||
.populate({ path: "addedBy" });
|
||||
|
||||
if (dispatchedOrders.length > 0) {
|
||||
@ -765,6 +766,7 @@ export const getProcessingOrdersAdmin = async (req, res) => {
|
||||
.skip(skip)
|
||||
.limit(limit)
|
||||
.populate({ path: "orderItem.productId" })
|
||||
.populate({ path: "invoices" })
|
||||
.populate({ path: "addedBy" });
|
||||
|
||||
if (processingOrders.length > 0) {
|
||||
@ -795,6 +797,7 @@ export const getDeliveredOrdersAdmin = async (req, res) => {
|
||||
.skip(skip)
|
||||
.limit(limit)
|
||||
.populate({ path: "orderItem.productId" })
|
||||
.populate({ path: "invoices" })
|
||||
.populate({ path: "addedBy" });
|
||||
|
||||
if (deliveredOrders.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user