From 1ed61120fd4ca90b808cb46bac10022a0b9515d8 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 12 Feb 2025 13:54:27 -0800 Subject: [PATCH] Add todo comment --- Server/controllers/monitorController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Server/controllers/monitorController.js b/Server/controllers/monitorController.js index eb3d93cd8..9e87e53e5 100644 --- a/Server/controllers/monitorController.js +++ b/Server/controllers/monitorController.js @@ -316,6 +316,10 @@ class MonitorController { name: "deleteDistributedUptimeChecks", fn: () => this.db.deleteDistributedChecksByMonitorId(monitor._id), }, + + // TODO We don't actually want to delete the status page if there are other monitors in it + // We actually just want to remove the monitor being deleted from the status page. + // Only delete he status page if there are no other monitors in it. { name: "deleteStatusPages", fn: () => this.db.deleteStatusPagesByMonitorId(monitor._id),