|
|
|
@ -767,7 +767,8 @@ exports.consumption = async (req, reply) => {
|
|
|
|
|
const tankname = tank.tankName
|
|
|
|
|
const consumption = (waterlevel_at_midnight+total_water_added_from_midnight)-waterlevel
|
|
|
|
|
|
|
|
|
|
const newWaterLevel = Math.floor(consumption);
|
|
|
|
|
const newWaterLevel1 = Math.floor(consumption);
|
|
|
|
|
const newWaterLevel=Math.abs(newWaterLevel1)
|
|
|
|
|
tankData.push({ tankname, waterLevel: newWaterLevel });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|