donwgrade mongo functoins

This commit is contained in:
Alex Holliday committed 2025-06-25 11:39:05 +08:00
1 parent 6c7fefe4ed
commit 8606b5e5de
5 files changed
+23 -30

No files matched your search

+2 -2
View File
@@ -73,7 +73,7 @@ const getChecksByMonitor = async ({
rowsPerPage = parseInt(rowsPerPage);
// Match
const matchStage = {
monitorId: ObjectId.createFromHexString(monitorId),
monitorId: new ObjectId(monitorId),
...(typeof status !== "undefined" && { status }),
...(dateRangeLookup[dateRange] && {
createdAt: {
@@ -161,7 +161,7 @@ const getChecksByTeam = async ({
page = parseInt(page);
rowsPerPage = parseInt(rowsPerPage);
const matchStage = {
teamId: ObjectId.createFromHexString(teamId),
teamId: new ObjectId(teamId),
status: false,
...(dateRangeLookup[dateRange] && {
createdAt: {