From 87a7e02ca167940a86e69deaddc58ac5f5ec5451 Mon Sep 17 00:00:00 2001 From: mayura-andrew Date: Mon, 30 Sep 2024 00:33:57 +0530 Subject: [PATCH] Refactor: Make mentor feedback optional in addFeedbackMonthlyCheckInSchema --- src/schemas/mentee-routes.schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/mentee-routes.schemas.ts b/src/schemas/mentee-routes.schemas.ts index 072e7a1..4069319 100644 --- a/src/schemas/mentee-routes.schemas.ts +++ b/src/schemas/mentee-routes.schemas.ts @@ -40,6 +40,6 @@ export const postMonthlyCheckInSchema = z.object({ export const addFeedbackMonthlyCheckInSchema = z.object({ menteeId: z.string(), checkInId: z.string(), - mentorFeedback: z.string().min(5, 'Please provide a valid feedback'), + mentorFeedback: z.string().optional(), isCheckedByMentor: z.boolean() })