change in write motor statusac

master
varun 2 years ago
parent 19a2b92b79
commit 23f9b9c65a

@ -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 } }

Loading…
Cancel
Save