mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-08 10:00:12 -05:00
Updated getAllMonitors to only return active monitors
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user