This commit is contained in:
Alex Holliday committed 2026-01-21 10:16:17 -08:00
1 parent ef61a63da0
commit d242382abf
2 files changed
+1 -5

No files matched your search

@@ -146,10 +146,7 @@ class MongoMonitorsRepository implements IMonitorsRepository {
return { monitors: this.mapDocuments(monitors), deletedCount };
};
findMonitorsSummaryByTeamId = async (
teamId: string,
config?: SummaryConfig
): Promise<MonitorsSummary> => {
findMonitorsSummaryByTeamId = async (teamId: string, config?: SummaryConfig): Promise<MonitorsSummary> => {
const match: FilterQuery<MonitorDocument> = { teamId: new mongoose.Types.ObjectId(teamId) };
if (config?.type !== undefined) {
match.type = Array.isArray(config.type) ? { $in: config.type } : config.type;