style: run prettier to fix formatting issues after upstream merge
This commit is contained in:
1 parent
05814854df
commit
3e010f1c0d
1 file changed
+16
-11
@@ -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"],
|
||||
}
|
||||
);
|
||||
Reference in new issue
Block a user