master^2
Varun 5 months ago
parent 663284fbdd
commit 96c124cab8

@ -6134,7 +6134,9 @@ async function processIotData(hw_Id, data) {
for (const tank of tanks) { for (const tank of tanks) {
const { Id: tankhardwareId, level: tankHeight } = tank; const { Id: tankhardwareId, level: tankHeight } = tank;
const existingTank = await Tank.findOne({ hardwareId: hw_Id, tankhardwareId }); const existingTank = await Tank.findOne({ hardwareId: hw_Id, tankhardwareId });
console.log(hw_Id,"hw_Id")
console.log(tankhardwareId,"tankhardwareId")
console.log(existingTank,"existingTank")
if (!existingTank) continue; if (!existingTank) continue;
const customerId = existingTank.customerId; const customerId = existingTank.customerId;

Loading…
Cancel
Save