From 55aa30a21df07e978d9bcec05a1303bed605875a Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Wed, 29 Jan 2025 11:13:29 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 8bb25691..9b9e1e14 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2973,11 +2973,11 @@ exports.motorAction = async (req, reply) => { console.log(thresholdTime,"thresholdTime") console.log("motor stopping because it entered this condition") // Emit the threshold time notification - eventEmitter.emit( - "sendThresholdTimeNotification", - fcmToken, - `Motor has reached its time threshold of ${req.body.manual_threshold_time} minutes and will stop.` - ); + // eventEmitter.emit( + // "sendThresholdTimeNotification", + // fcmToken, + // `Motor has reached its time threshold of ${req.body.manual_threshold_time} minutes and will stop.` + // ); await Tank.updateOne( { customerId, "connections.inputConnections.motor_id": motorId },