zoneId modified to string in schema model bcz of zoneUUId
This commit is contained in:
@@ -10,7 +10,7 @@ export interface FloatingWidget extends Document {
|
||||
per: string;
|
||||
value: string;
|
||||
isArchive: boolean;
|
||||
zoneId: Zone["_id"];
|
||||
zoneId: string;
|
||||
Data: {
|
||||
measurements: {};
|
||||
duration: string;
|
||||
@@ -25,7 +25,7 @@ const floatingWidgetSchema: Schema = new Schema(
|
||||
position: { type: Object },
|
||||
per: { type: String },
|
||||
value: { type: String },
|
||||
zoneId: { type: Schema.Types.ObjectId, ref: "Zone" },
|
||||
zoneId: { type: String },
|
||||
Data: {
|
||||
measurements: { type: Object, default: {} },
|
||||
duration: { type: String, default: "1h" },
|
||||
|
||||
Reference in New Issue
Block a user