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({ const tanksSchema = new mongoose.Schema({
hardwareId: { type: String }, hardwareId: { type: String },
tankhardwareId: { type: String }, tankhardwareId: { type: String },
hardwareId_type: { type: String }, hardwareId_type: { type: String },
motor_id:{ type: String ,default: null}, motor_id:{ type: String ,default: null},

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

Loading…
Cancel
Save