diff --git a/server/package-lock.json b/server/package-lock.json index 86002bba5..5a8c1ed93 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -14637,7 +14637,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, diff --git a/server/src/validation/notificationValidation.ts b/server/src/validation/notificationValidation.ts index 7b02c7022..3e2f16de4 100644 --- a/server/src/validation/notificationValidation.ts +++ b/server/src/validation/notificationValidation.ts @@ -82,6 +82,6 @@ export const bulkEditNotificationBodyValidation = 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"], { - errorMap: () => ({message: "Action must be 'add', 'remove', or 'set'"}) + message: "Action must be 'add', 'remove', or 'set'", }), -}); \ No newline at end of file +});