From face3339cd1f319b6f2b111d52517207fe56dc62 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 21 May 2024 11:28:36 -0700 Subject: [PATCH] Updated getAllMonitors to only return active monitors --- Server/db/MongoDB.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/db/MongoDB.js b/Server/db/MongoDB.js index 7546cda37..d9be30f15 100644 --- a/Server/db/MongoDB.js +++ b/Server/db/MongoDB.js @@ -61,7 +61,7 @@ const getUserByEmail = async (req, res) => { */ const getAllMonitors = async (req, res) => { try { - const monitors = await Monitor.find(); + const monitors = await Monitor.find({ isActive: true }); return monitors; } catch (error) { throw error;