diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 7a9a19b9..c86a3d2f 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -863,7 +863,7 @@ exports.motorAction = async (req, reply) => { const customerId = req.params.customerId; const action = req.body.action; const motorId = req.body.motor_id; - + console.log(req.body.startTime) // Ensure motor_id is provided if (!motorId) { throw new Error("Motor ID is required."); diff --git a/src/models/tanks.js b/src/models/tanks.js index 579019d8..53a6063f 100644 --- a/src/models/tanks.js +++ b/src/models/tanks.js @@ -75,7 +75,7 @@ const tanksSchema = new mongoose.Schema({ manual_threshold_time:{type: String, default: null}, threshold_type:{type: String, default: "percentage"}, startTime:{type: String,default:null}, - real_motor_status:{type:String,default:"1"}, + stopTime:{type: String,default:null} } ],