Added JS doc

This commit is contained in:
Alex Holliday
2024-07-03 12:34:57 -07:00
parent 505d9f2890
commit ceecf3427c

View File

@@ -34,6 +34,7 @@ const CheckSchema = mongoose.Schema(
/**
* When a check is created, we should update the stauts of the associated monitor
* 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) {