diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 84ef019e..e81685a8 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -3135,9 +3135,9 @@ exports.motorAction = async (req, reply) => { try { - const totalWaterPumped = await calculateTotalPumpedWater(customerId, motorId, start_instance_id); + const totalWaterPumped = quantity_delivered console.log("quantity_delivered",quantity_delivered) - eventEmitter.emit("motorStop", customerId, fcmToken, tankName, blockName, stopTime, "Mobile APP", quantity_delivered, typeOfWater, motorId, + eventEmitter.emit("motorStop", customerId, fcmToken, tankName, blockName, stopTime, "Mobile APP", totalWaterPumped, typeOfWater, motorId, loggedInUser.phone,); reply.code(200).send({ message: "Motor stopped successfully." });