made chanbges in tanks controllers in update water level

master
varun 3 years ago
parent e3b00c6782
commit 706b914fad

@ -146,7 +146,8 @@ exports.updateTanklevels = async (req, reply) => {
for (var i=0; i < tank.length; i++) {
const tankname = tank[i].tankName
const capacity = tank[i].capacity
const capacity = (tank[i].capacity).replace(/,/g, "")
console.log(capacity)
let Number = capacity-100 //Math.floor(Math.random() * capacity)

Loading…
Cancel
Save