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

+1 -1
View File
@@ -19,7 +19,7 @@ const getMonitorsByTeamIdExecutionStats = async (req) => {
order = "asc";
}
// Build match stage
const matchStage = { teamId: ObjectId.createFromHexString(req.params.teamId) };
const matchStage = { teamId: new ObjectId(req.params.teamId) };
if (type !== undefined) {
matchStage.type = Array.isArray(type) ? { $in: type } : type;
}