mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-11 04:09:40 -06:00
fix notification schema
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user