master^2
Bhaskar 8 months ago
parent a6b3e28d17
commit c7d449198b

@ -3135,9 +3135,9 @@ exports.motorAction = async (req, reply) => {
try { try {
const totalWaterPumped = await calculateTotalPumpedWater(customerId, motorId, start_instance_id); const totalWaterPumped = quantity_delivered
console.log("quantity_delivered",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,); loggedInUser.phone,);
reply.code(200).send({ message: "Motor stopped successfully." }); reply.code(200).send({ message: "Motor stopped successfully." });

Loading…
Cancel
Save