Add alert threshold for temp
This commit is contained in:
1 parent
20513d5ae1
commit
d1d19177bd
1 file changed
+6
@@ -38,6 +38,12 @@ const NotificationSchema = mongoose.Schema(
|
||||
return this.alertThreshold;
|
||||
},
|
||||
},
|
||||
tempAlertThreshold: {
|
||||
type: Number,
|
||||
default: function () {
|
||||
return this.alertThreshold;
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
|
||||
Reference in new issue
Block a user