diff --git a/src/controllers/createConnectionController.js b/src/controllers/createConnectionController.js index e291096d..a37f424d 100644 --- a/src/controllers/createConnectionController.js +++ b/src/controllers/createConnectionController.js @@ -513,6 +513,7 @@ exports.createConnections = async (req, res) => { const tankname = req.body.tankname; const usertobeInserted = req.body; + // Find the current tank const tankInfo = await Tank.findOne({ customerId: customerId.toString(),