From 04ff74dcefd7923a09e87d434a754e95fc3f7011 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 3 Jul 2024 13:19:47 -0700 Subject: [PATCH] Update monitor status --- Server/models/Check.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/models/Check.js b/Server/models/Check.js index 339c21482..7732fd312 100644 --- a/Server/models/Check.js +++ b/Server/models/Check.js @@ -50,6 +50,7 @@ CheckSchema.pre("save", async function (next) { // TODO issue alert console.log("Monitor went up"); } + monitor.status = this.status; await monitor.save(); } } catch (error) {