Skip to content

Commit 1ed6112

Browse files
committed
Add todo comment
1 parent 508c838 commit 1ed6112

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Server/controllers/monitorController.js

+4
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ class MonitorController {
316316
name: "deleteDistributedUptimeChecks",
317317
fn: () => this.db.deleteDistributedChecksByMonitorId(monitor._id),
318318
},
319+
320+
// TODO We don't actually want to delete the status page if there are other monitors in it
321+
// We actually just want to remove the monitor being deleted from the status page.
322+
// Only delete he status page if there are no other monitors in it.
319323
{
320324
name: "deleteStatusPages",
321325
fn: () => this.db.deleteStatusPagesByMonitorId(monitor._id),

0 commit comments

Comments
 (0)