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
+2 -6
+2 -6
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,
ref: "NotificationChannel_v2",
required: false,
default: [], 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 },