remove mongo middleware

This commit is contained in:
Alex Holliday committed 2026-01-15 19:36:41 +00:00
1 parent 74a7f0a701
commit 68559741ba
19 files changed
+247 -141

No files matched your search

@@ -385,6 +385,11 @@ class MongoChecksRepository implements IChecksRepository {
checks: checks.map((doc) => this.toEntity(doc)),
};
};
deleteByMonitorId = async (monitorId: string): Promise<number> => {
const result = await CheckModel.deleteMany({ "metadata.monitorId": monitorId });
return result.deletedCount;
};
}
export default MongoChecksRepository;