diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 772a6dbc..f683b42c 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -189,13 +189,7 @@ exports.getConnectionsInfoOfParticularTank = async (req, reply) => { } // Send the found tank within a list - const resultList = [{ - type: 'Main Tank', - message: 'This is the data of the main tank.', - details: mainTank - }]; - - reply.send({ status_code: 200, data: resultList }); + reply.send({ status_code: 200, data: [mainTank] }); } catch (err) { throw boom.boomify(err); }