From 06836c4fe366edff504dc61cb9f3354fca9461f9 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 8 Jan 2025 17:24:51 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 3d2f0a38..c5365f45 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -4659,6 +4659,8 @@ client.on('message', async (topic, message) => { time })); + + // Save IoT data for the received tanks const iotTankData = new IotData({ hardwareId: hw_Id, // Updated variable name @@ -4993,5 +4995,5 @@ async function removeDuplicates() { } // Run the remove duplicates function -removeDuplicates(); +// removeDuplicates(); console.log("this is for testing autopush,line located in tankscontroller") \ No newline at end of file