style: run prettier to fix formatting issues after upstream merge

This commit is contained in:
ashu130698 committed 2026-03-21 00:52:36 +05:30
1 parent 05814854df
commit 3e010f1c0d
1 file changed
+9 -4
@@ -99,14 +99,19 @@ export const sendTestEmailBodyValidation = z.object({
systemEmailTLSServername: z.union([z.string(), z.literal("")]).optional(), systemEmailTLSServername: z.union([z.string(), z.literal("")]).optional(),
}); });
export const updateNotificationsValidation = z.object({ export const updateNotificationsValidation = z
.object({
monitorIds: z.array(z.string()).min(1, "At least one monitor ID is required"), monitorIds: z.array(z.string()).min(1, "At least one monitor ID is required"),
notificationIds: z.array(z.string()), notificationIds: z.array(z.string()),
action: z.enum(["add", "remove", "set"] as const), action: z.enum(["add", "remove", "set"] as const),
}).refine((data) => { })
.refine(
(data) => {
if (data.action !== "set" && data.notificationIds.length === 0) return false; if (data.action !== "set" && data.notificationIds.length === 0) return false;
return true; return true;
}, { },
{
message: "Notification IDs cannot be empty unless action is 'set'", message: "Notification IDs cannot be empty unless action is 'set'",
path: ["notificationIds"], path: ["notificationIds"],
}); }
);