Merge pull request #994 from bluewave-labs/fix/be/check-module

Added missing var declaration
This commit is contained in:
Alexander Holliday
2024-10-21 10:08:59 +08:00
committed by GitHub

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;