From 3ba6f5a56b7e97de22564b49eee1ca762b47295e Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 17 Sep 2024 08:46:06 +0800 Subject: [PATCH] Fix type error --- Server/db/mongo/modules/monitorModule.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }; }