From d1d19177bd43dc5c0b66d58960d782c44a2ff2f4 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 25 Nov 2024 11:04:18 +0800 Subject: [PATCH] Add alert threshold for temp --- Server/db/models/Notification.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Server/db/models/Notification.js b/Server/db/models/Notification.js index 868324cc2..895b66362 100644 --- a/Server/db/models/Notification.js +++ b/Server/db/models/Notification.js @@ -38,6 +38,12 @@ const NotificationSchema = mongoose.Schema( return this.alertThreshold; }, }, + tempAlertThreshold: { + type: Number, + default: function () { + return this.alertThreshold; + }, + }, }, { timestamps: true,