From a9b702970eca94b021e54246602686bfb8b42a60 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 4 Mar 2025 15:30:45 +0530 Subject: [PATCH] changes --- src/controllers/storeController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 48a3068b..f7d5bd65 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1560,7 +1560,7 @@ exports.createquotationforSensor = async (req, reply) => { message: 'Quotation for sensors created successfully.', data: savedQuotation, }); - + } catch (error) { console.error('Error creating quotation:', error); reply.code(500).send({ @@ -1695,6 +1695,7 @@ exports.getallquotationdata = async (req, reply) => { return acc; }, {}); + // Attach customer details to quotations const enrichedQuotations = quotations.map((quotation) => ({ ...quotation,