fix notification schema

This commit is contained in:
Alex Holliday
2025-09-23 14:56:02 -07:00
parent c0ff162ed9
commit 2d12fbdff1

View File

@@ -63,14 +63,10 @@ const MonitorSchema = new Schema<IMonitor>(
],
default: [],
},
notificationChannels: [
{
type: Schema.Types.ObjectId,
ref: "NotificationChannel_v2",
required: false,
default: [],
},
],
notificationChannels: {
type: [{ type: Schema.Types.ObjectId, ref: "NotificationChannel_v2" }],
default: [],
},
createdBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true },
updatedBy: { type: Schema.Types.ObjectId, ref: "User_v2", required: true },