From a5ff27da7a43015535917dd55ccc79c490f37e2f Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 17 Jan 2023 17:34:47 +0800 Subject: [PATCH] Drop the property `monitor.maintenance`, use `lastHeartBeat.status` to check status instead --- server/model/monitor.js | 1 - src/components/Uptime.vue | 11 ++++++----- src/mixins/socket.js | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index e6332b8f4..4fa478acc 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -36,7 +36,6 @@ class Monitor extends BeanModel { id: this.id, name: this.name, sendUrl: this.sendUrl, - maintenance: await Monitor.isUnderMaintenance(this.id), }; if (this.sendUrl) { diff --git a/src/components/Uptime.vue b/src/components/Uptime.vue index df9bd47ac..7b5f48bb7 100644 --- a/src/components/Uptime.vue +++ b/src/components/Uptime.vue @@ -3,6 +3,8 @@