Accidentally removed isActive filter from getAll, replaced it

This commit is contained in:
Alex Holliday committed 2024-05-21 13:58:29 -07:00
1 parent c4dc57b9be
commit 4f934c0d69
1 file changed
+1 -1
+1 -1
View File
@@ -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;