Notifications added to monitor object
This commit is contained in:
1 parent
7c247c0367
commit
7e90b5f48b
4 files changed
+15
-8
No files matched your search
@@ -1,4 +1,5 @@
|
||||
const mongoose = require("mongoose");
|
||||
const Notification = require("./Notification");
|
||||
|
||||
const MonitorSchema = mongoose.Schema(
|
||||
{
|
||||
@@ -43,6 +44,12 @@ const MonitorSchema = mongoose.Schema(
|
||||
type: Number,
|
||||
default: 60000,
|
||||
},
|
||||
notifications: [
|
||||
{
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: "Notification",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
|
||||
Reference in new issue
Block a user