diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 6fda48a7..c07bfa30 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1619,4 +1619,5 @@ exports.writeMotorStatus = async (request, reply) => { request.log.error(error); return reply.code(500).send({ error: 'Internal Server Error' }); } -} \ No newline at end of file +} + diff --git a/src/routes/tanksRoute.js b/src/routes/tanksRoute.js index a0878b2d..ad6edc6c 100644 --- a/src/routes/tanksRoute.js +++ b/src/routes/tanksRoute.js @@ -752,6 +752,8 @@ module.exports = function (fastify, opts, next) { }, handler: tanksController.readMotorStatus }); + + next(); }