cleanup and tighten validation

This commit is contained in:
Alex Holliday committed 2026-03-11 12:57:27 -07:00
1 parent 545926cfcf
commit ff90953f17
2 files changed
+22 -37

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ export const getMonitorByIdQueryValidation = z.object({
dateRange: z.enum(["recent", "hour", "day", "week", "month", "all"]).optional(),
numToDisplay: z.coerce.number().optional(),
normalize: booleanCoercion.optional(),
continent: z.enum(GeoContinents).optional(),
continent: z.union([z.enum(GeoContinents), z.array(z.enum(GeoContinents))]).optional(),
});
export const getMonitorsByTeamIdParamValidation = z.object({});