made changes in tankscontroller

master
varun 2 years ago
parent 359961de01
commit f9a4ef7b4e

@ -187,7 +187,7 @@ exports.updateTanklevels = async (req, reply) => {
// waterLevel = newWaterLevel; // waterLevel = newWaterLevel;
}, 2000); }, 5000);
intervals[tankId] = intervalId; intervals[tankId] = intervalId;
} }

@ -42,7 +42,7 @@ const tanksSchema = new mongoose.Schema({
waterlevel: { type: String, default: "0" }, waterlevel: { type: String, default: "0" },
tankLocation: { type: String, default: null }, tankLocation: { type: String, default: null },
motor_status: { type: String, default: "0" }, motor_status: { type: String, default: "0" },
waterlevel_at_midnight:{ type: String }, waterlevel_at_midnight:{ type: String,default:"0" },
connections: { connections: {
source: { type: String }, source: { type: String },
inputConnections: [ inputConnections: [

Loading…
Cancel
Save