From 48ea74483a18ef77bb3ecd58d60805458116cd09 Mon Sep 17 00:00:00 2001 From: Varun Date: Fri, 11 Jul 2025 16:06:22 +0530 Subject: [PATCH] changes in handle estimation --- src/controllers/storeController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 1cb415c5..18a597bc 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -2164,14 +2164,15 @@ exports.handleEstimation = async (req, reply) => { }); await newOrder.save(); - + const user = await User.findOne({ customerId }); return reply.code(200).send({ message: "Order created successfully", orderId, customerId, estimatedTotal, items, - status: "pending" + status: "pending", + userDetails: user || null }); } catch (error) {