master
varun 1 year ago
parent 3819941824
commit 0393a5cfd9

@ -188,14 +188,21 @@ exports.getConnectionsInfoOfParticularTank = async (req, reply) => {
return reply.send({ status_code: 404, error: "Main tank not found" }); return reply.send({ status_code: 404, error: "Main tank not found" });
} }
// Send the found tank // Send the found tank within a list
reply.send({ status_code: 200, data: mainTank }); const resultList = [{
type: 'Main Tank',
message: 'This is the data of the main tank.',
details: mainTank
}];
reply.send({ status_code: 200, data: resultList });
} catch (err) { } catch (err) {
throw boom.boomify(err); throw boom.boomify(err);
} }
}; };
//get tanks data by passing username //get tanks data by passing username
exports.getTank = async (req, reply) => { exports.getTank = async (req, reply) => {
try { try {

Loading…
Cancel
Save