|
|
|
@ -6134,7 +6134,9 @@ async function processIotData(hw_Id, data) {
|
|
|
|
|
for (const tank of tanks) {
|
|
|
|
|
const { Id: tankhardwareId, level: tankHeight } = tank;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
const customerId = existingTank.customerId;
|
|
|
|
|