|
|
@ -286,7 +286,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
action: { type: "string" },
|
|
|
|
action: { type: "string" },
|
|
|
|
percentage: { type: "string",default: "100" },
|
|
|
|
percentage: { type: "string",default: "100" },
|
|
|
|
startTime:{ type: "string" },
|
|
|
|
startTime:{ type: "string" },
|
|
|
|
threesold_type:{type:"string"},
|
|
|
|
threshold_type:{type:"string"},
|
|
|
|
manual_threshold_percentage:{type:"string"},
|
|
|
|
manual_threshold_percentage:{type:"string"},
|
|
|
|
manual_threshold_time:{type:"string"},
|
|
|
|
manual_threshold_time:{type:"string"},
|
|
|
|
stop_at:{type:"number"},
|
|
|
|
stop_at:{type:"number"},
|
|
|
@ -303,7 +303,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
// fastify.auth([fastify.operatorAuthenticate]),
|
|
|
|
// fastify.auth([fastify.operatorAuthenticate]),
|
|
|
|
// validationHandler.validatePhoneFormat,
|
|
|
|
// validationHandler.validatePhoneFormat,
|
|
|
|
// ],
|
|
|
|
// ],
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
handler: tanksController.motorAction,
|
|
|
|
handler: tanksController.motorAction,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|