change in write motor statusac

master
varun 2 years ago
parent 23f9b9c65a
commit e0cc0b1f14

@ -30,8 +30,10 @@ const RoleSchema = new Schema({ name: String });
// });
const tanksSchema = new mongoose.Schema({
hardwareId: { type: String },
tankhardwareId: { type: String },
hardwareId_type: { type: String },
motor_id:{ type: String ,default: null},

@ -582,6 +582,7 @@ module.exports = function (fastify, opts, next) {
type: 'object',
required: ['motor_id', 'status'],
properties: {
motor_id: { type: 'string' },
status: { type: 'string'},
current: { type: 'string' },

Loading…
Cancel
Save