zoneId modified to string in schema model bcz of zoneUUId

This commit is contained in:
2025-05-17 11:29:43 +05:30
parent f62ccd1ea9
commit 2aa8c479fa
4 changed files with 8 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ export interface Widget3d extends Document {
position: [];
rotation: [];
isArchive: boolean;
zoneId: Zone["_id"];
zoneId: string;
Data: {
measurements: {};
duration: string;
@@ -21,7 +21,7 @@ const Widget3dSchema: Schema = new Schema(
widgetName: { type: String, default: "Widget3D" },
position: { type: Array },
rotation: { type: Array },
zoneId: { type: Schema.Types.ObjectId, ref: "Zone" },
zoneId: { type: String },
Data: {
measurements: { type: Object, default: {} },
duration: { type: String, default: "1h" },