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
+16 -11
+16 -11
View File
@@ -99,14 +99,19 @@ export const sendTestEmailBodyValidation = z.object({
systemEmailTLSServername: z.union([z.string(), z.literal("")]).optional(),
});
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),
}).refine((data) => {
if (data.action !== "set" && data.notificationIds.length === 0) return false;
return true;
}, {
message: "Notification IDs cannot be empty unless action is 'set'",
path: ["notificationIds"],
});
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),
})
.refine(
(data) => {
if (data.action !== "set" && data.notificationIds.length === 0) return false;
return true;
},
{
message: "Notification IDs cannot be empty unless action is 'set'",
path: ["notificationIds"],
}
);