Merge pull request #3652 from bluewave-labs/fix/findByIdsWithChecks

fix: update query
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-05-13 11:29:02 -07:00
commit ae9416641c
1 file changed
+1 -1
@@ -108,7 +108,7 @@ class MongoMonitorsRepository implements IMonitorsRepository {
$lookup: {
from: "maintenancewindows",
let: { monitorId: "$_id" },
pipeline: [{ $match: { $expr: { $eq: ["$monitorId", "$$monitorId"] } } }],
pipeline: [{ $match: { $expr: { $in: ["$$monitorId", { $ifNull: ["$monitorIds", []] }] } } }],
as: "maintenanceWindows",
},
},