From eb28852382de489e6cdd63b369847908c88aba8c Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Wed, 26 Mar 2025 18:11:03 +0530 Subject: [PATCH] chnages --- src/controllers/tanksController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index e81685a8..dd8fb7af 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -3135,8 +3135,8 @@ exports.motorAction = async (req, reply) => { try { - const totalWaterPumped = quantity_delivered - console.log("quantity_delivered",quantity_delivered) + const totalWaterPumped = await motorData.quantity_delivered + console.log("quantity_delivered",totalWaterPumped) eventEmitter.emit("motorStop", customerId, fcmToken, tankName, blockName, stopTime, "Mobile APP", totalWaterPumped, typeOfWater, motorId, loggedInUser.phone,);