Added missing var declaration

This commit is contained in:
Alex Holliday committed 2024-10-21 10:07:02 +08:00
1 parent f4d6903501
commit 0dad5c282c
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ const getTeamChecks = async (req) => {
// Default sort order is newest -> oldest
sortOrder = sortOrder === "asc" ? 1 : -1;
checksQuery = { monitorId: { $in: userMonitors } };
const checksQuery = { monitorId: { $in: userMonitors } };
if (filter !== undefined) {
checksQuery.status = false;