diff --git a/src/models/store.js b/src/models/store.js index 90df39a5..04b2633f 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -250,7 +250,7 @@ const motorSwitchSensorInSchema = new mongoose.Schema({ const insensorsSchema = new mongoose.Schema({ storeId: { type: String }, - hardwareId: { type: String }, + hardwareId: { type: String ,default:null}, masterId: { type: String, default: null }, type: { type: String }, model: { type: String },