donwgrade mongo functoins
This commit is contained in:
1 parent
6c7fefe4ed
commit
8606b5e5de
5 files changed
+23
-30
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user