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) {