Added JS doc
This commit is contained in:
1 parent
505d9f2890
commit
ceecf3427c
1 file changed
+1
@@ -34,6 +34,7 @@ const CheckSchema = mongoose.Schema(
|
|||||||
/**
|
/**
|
||||||
* When a check is created, we should update the stauts of the associated monitor
|
* When a check is created, we should update the stauts of the associated monitor
|
||||||
* if it has changed. Monitor starts with default status: true
|
* if it has changed. Monitor starts with default status: true
|
||||||
|
* @param {function} next - Callback to proceed to the next middleware.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CheckSchema.pre("save", async function (next) {
|
CheckSchema.pre("save", async function (next) {
|
||||||
|
|||||||
Reference in new issue
Block a user