|
|
@ -49,10 +49,10 @@ exports.updateconnectionInfo = async (req, reply) => {
|
|
|
|
|
|
|
|
|
|
|
|
exports.getConnections = async (req, reply) => {
|
|
|
|
exports.getConnections = async (req, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
var connectionsData=await Tank.findOne({customerId: req.query.customerId})
|
|
|
|
var connectionsData=await Tank.find({customerId: req.query.customerId})
|
|
|
|
var connection_data = connectionsData.connections
|
|
|
|
// var connection_data = connectionsData.connections
|
|
|
|
|
|
|
|
|
|
|
|
reply.send({ status_code: 200, data: connection_data});
|
|
|
|
reply.send({ status_code: 200, data: connectionsData});
|
|
|
|
// return tank;
|
|
|
|
// return tank;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|