master^2
Varun 6 months ago
parent c442cbf52d
commit 7c5f7d59bb

@ -2974,6 +2974,7 @@ exports.motorAction = async (req, reply) => {
motorIntervals[motorId] = setInterval(async () => { motorIntervals[motorId] = setInterval(async () => {
console.log(motorId,"interval created") console.log(motorId,"interval created")
console.log(customerId,req.body.from,req.body.from_type.toLowerCase())
const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() }); const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() });
console.log("up",supplierTank) console.log("up",supplierTank)
console.log(supplierTank.waterlevel,"parseInt(supplierTank.waterlevel, 10)") console.log(supplierTank.waterlevel,"parseInt(supplierTank.waterlevel, 10)")

Loading…
Cancel
Save