fix notification schema

This commit is contained in:
Alex Holliday committed 2025-09-23 14:56:02 -07:00
1 parent c0ff162ed9
commit 2d12fbdff1
1 file changed
+4 -8
+4 -8
View File
@@ -63,14 +63,10 @@ const MonitorSchema = new Schema<IMonitor>(
], ],
default: [], default: [],
}, },
notificationChannels: [ notificationChannels: {
{ type: [{ type: Schema.Types.ObjectId, ref: "NotificationChannel_v2" }],
type: Schema.Types.ObjectId, default: [],
ref: "NotificationChannel_v2", },
required: false,
default: [],
},
],
createdBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true }, createdBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true },
updatedBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true }, updatedBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true },