Notifications added to monitor object

This commit is contained in:
Alex Holliday committed 2024-08-30 13:03:59 -07:00
1 parent 7c247c0367
commit 7e90b5f48b
4 files changed
+15 -8

No files matched your search

+7
View File
@@ -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,