refactor(backend): move notifications update endpoint to monitors route and handle security feedback
This commit is contained in:
1 parent
5578fdf17f
commit
0fc338db2f
9 files changed
+78
-42
No files matched your search
@@ -77,7 +77,7 @@ export const sendTestEmailBodyValidation = z.object({
|
||||
systemEmailTLSServername: z.union([z.string(), z.literal("")]).optional(),
|
||||
});
|
||||
|
||||
export const bulkEditNotificationBodyValidation = 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()),
|
||||
action: z.enum(["add", "remove", "set"] as const),
|
||||
|
||||
Reference in new issue
Block a user