Fix type error
This commit is contained in:
1 parent
5c94229994
commit
3ba6f5a56b
1 file changed
+2
-1
@@ -378,7 +378,8 @@ const getMonitorsByTeamId = async (req, res) => {
|
|||||||
.limit(rowsPerPage);
|
.limit(rowsPerPage);
|
||||||
|
|
||||||
// Early return if limit is set to -1, indicating we don't want any checks
|
// 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 };
|
return { monitors, monitorCount: monitorsCount };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user