From 8c82d3e7f2fb0ad7b128461dd919e2077beda0b6 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 7 Jan 2025 15:28:58 +0530 Subject: [PATCH] changes in creating batch number for sensors --- src/controllers/storeController.js | 2 +- src/controllers/tanksController.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index c02a0585..9cedc427 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1208,7 +1208,7 @@ exports.createSensor = async (req, reply) => { let finalBatchNo = batchno; - if (batchno === 'new') { + if (batchno === 'New') { let isUnique = false; while (!isUnique) { diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index ef9031e5..794e7455 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -4730,7 +4730,7 @@ client.on('message', async (topic, message) => { const inputConnection = motorTank.connections.inputConnections.find(conn => conn.motor_id === hw_Id); // Updated variable name if (inputConnection) { inputConnection.motor_status = status; // Update motor status - + console.log(inputConnection.motor_stop_status,"inputConnection.motor_stop_status") if (inputConnection.motor_stop_status === "1" && status === "2") { console.log("got into forced manual")