@ -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.");
@ -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}
}
],