diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 670ec9db..1491b8de 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1474,11 +1474,11 @@ exports.readMotorStatus = async (req, reply) => { return reply.status(404).send({ status_code: 404, message: 'Tank not found for the specified motor_id' }); } - const motor_status = motorInfo.motor_status; + const motor_stop_status = motorInfo.motor_stop_status; - reply.send({ status_code: 200, motor_status:motor_status }); + reply.send({ status_code: 200, motor_stop_status:motor_stop_status }); } catch (err) { throw boom.boomify(err); }