From 23f9b9c65a6e19715538221f932a723e376c2f5a Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 4 Jan 2024 04:43:15 -0500 Subject: [PATCH] change in write motor statusac --- src/controllers/tanksController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 671caf0a..3adf6909 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1515,6 +1515,7 @@ exports.writeMotorStatus = async (req, reply) => { // For example, update a database with the new status, current, and temp values let result; + result = await Tank.findOneAndUpdate( { motor_id: motor_id }, { $set: { motor_status: status } }