From 9e7a5c8f43b04ac9e47fd53448d374c906efe5ba Mon Sep 17 00:00:00 2001 From: LinThit27 Date: Thu, 7 Dec 2023 22:08:51 +0630 Subject: [PATCH] fix organizer dashboard return error --- controllers/organizerDashboardController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/organizerDashboardController.js b/controllers/organizerDashboardController.js index 04c6317..937869a 100644 --- a/controllers/organizerDashboardController.js +++ b/controllers/organizerDashboardController.js @@ -82,7 +82,7 @@ const totalTicketSale = async (req, res) => { totalTicketSaleByType: resultArray, toalTicketByPayment: toalTicketByPayment, }; - return res.json(ticketPromises); + return res.json(returnValues); }; const getAllOverviewData = async (req, res) => {