Update monitor status
This commit is contained in:
1 parent
be9e5884bf
commit
04ff74dcef
1 file changed
+1
@@ -50,6 +50,7 @@ CheckSchema.pre("save", async function (next) {
|
|||||||
// TODO issue alert
|
// TODO issue alert
|
||||||
console.log("Monitor went up");
|
console.log("Monitor went up");
|
||||||
}
|
}
|
||||||
|
monitor.status = this.status;
|
||||||
await monitor.save();
|
await monitor.save();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user