add upper limit to notificationValidation

This commit is contained in:
Alex committed 2026-03-23 10:13:43 -07:00
1 parent 0a6d876f4f
commit 94cf4f17d1
1 file changed
+2 -2
@@ -101,8 +101,8 @@ export const sendTestEmailBodyValidation = z.object({
export const updateNotificationsValidation = z
.object({
monitorIds: z.array(z.string()).min(1, "At least one monitor ID is required"),
notificationIds: z.array(z.string()),
monitorIds: z.array(z.string()).min(1, "At least one monitor ID is required").max(100, "Cannot update more than 100 monitors at once"),
notificationIds: z.array(z.string()).max(100, "Cannot specify more than 100 notification IDs at once"),
action: z.enum(["add", "remove", "set"] as const),
})
.refine(