Bhaskar 3 months ago
commit c3f378d0fa

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

Loading…
Cancel
Save