Fix type error

This commit is contained in:
Alex Holliday committed 2024-09-17 08:46:06 +08:00
1 parent 5c94229994
commit 3ba6f5a56b
1 file changed
+2 -1
+2 -1
View File
@@ -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 };
}