validation refactoring

This commit is contained in:
Alex Holliday committed 2026-03-02 17:29:48 +00:00
1 parent c3a41272a3
commit a5d3c95145
7 files changed
+53 -74

No files matched your search

+2 -2
View File
@@ -18,8 +18,8 @@ class GeoCheckController {
getGeoChecksByMonitor = async (req: Request, res: Response, next: NextFunction) => {
try {
await getChecksParamValidation.validateAsync(req.params);
await getChecksQueryValidation.validateAsync(req.query);
getChecksParamValidation.parse(req.params);
getChecksQueryValidation.parse(req.query);
const result = await this.geoChecksService.getGeoChecksByMonitor({
monitorId: req?.params?.monitorId as string,