diff --git a/Server/db/mongo/modules/monitorModule.js b/Server/db/mongo/modules/monitorModule.js index 58ac2e8c7..344fce188 100644 --- a/Server/db/mongo/modules/monitorModule.js +++ b/Server/db/mongo/modules/monitorModule.js @@ -378,7 +378,8 @@ const getMonitorsByTeamId = async (req, res) => { .limit(rowsPerPage); // Early return if limit is set to -1, indicating we don't want any checks - if (limit === -1) { + if (limit === "-1") { + console.log("early return"); return { monitors, monitorCount: monitorsCount }; }