Add alert threshold for temp

This commit is contained in:
Alex Holliday
2024-11-25 11:04:18 +08:00
parent 20513d5ae1
commit d1d19177bd

View File

@@ -38,6 +38,12 @@ const NotificationSchema = mongoose.Schema(
return this.alertThreshold;
},
},
tempAlertThreshold: {
type: Number,
default: function () {
return this.alertThreshold;
},
},
},
{
timestamps: true,