throw error on missing continent

This commit is contained in:
Alex Holliday committed 2026-03-25 13:49:13 -07:00
1 parent f09f0630dc
commit 276b11603e
1 file changed
-10
@@ -26,16 +26,6 @@ class GeoCheckController implements IGeoCheckController {
const validatedParams = getChecksParamValidation.parse(req.params);
const validatedQuery = getChecksQueryValidation.parse(req.query);
if (!validatedQuery.continent || validatedQuery.continent.length === 0) {
throw new AppError({
message: "At least one continent must be specified",
service: SERVICE_NAME,
method: "getGeoChecksByMonitor",
details: { monitorId: validatedParams.monitorId },
status: 400,
});
}
const teamId = requireTeamId(req.user?.teamId);
const result = await this.geoChecksService.getGeoChecksByMonitor({