From 8851987ac441f971713668717bcc4eda2fa92793 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:50:47 +0400 Subject: [PATCH] Update secrets.ts --- backend/src/validation/secrets.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/backend/src/validation/secrets.ts b/backend/src/validation/secrets.ts index 283185853..f769fcfe2 100644 --- a/backend/src/validation/secrets.ts +++ b/backend/src/validation/secrets.ts @@ -10,7 +10,6 @@ import { AuthData } from "../interfaces/middleware"; import { ActorType } from "../ee/models"; import { z } from "zod"; import { SECRET_PERSONAL, SECRET_SHARED } from "../variables"; -import { isValidCron } from "cron-validator"; /** * Validate authenticated clients for secrets with id [secretId] based * on any known permissions. @@ -363,12 +362,7 @@ export const UpdateSecretByNameV3 = z.object({ secretCommentIV: z.string().trim().optional(), secretCommentTag: z.string().trim().optional(), - secretReminderCron: z - .string() - .trim() - .optional() - .nullable() - .refine((val) => val === null || val === undefined || (val && isValidCron(val))), + secretReminderRepeatDays: z.number().min(1).max(365).optional().nullable(), secretReminderNote: z.string().trim().nullable().optional(), tags: z.string().array().optional(),