diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 8884904d..d8f11d50 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2975,7 +2975,7 @@ exports.motorAction = async (req, reply) => { motorIntervals[motorId] = setInterval(async () => { console.log(motorId,"interval created") const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() }); -console.log("up") +console.log("up",supplierTank) console.log(supplierTank.waterlevel,"parseInt(supplierTank.waterlevel, 10)") const currentWaterLevel = parseInt(supplierTank.waterlevel, 10); const currentWaterPercentage = (currentWaterLevel / parseInt(supplierTank.capacity.replace(/,/g, ''), 10)) * 100;