From 3969e1e17d3e029badb7a3b6d56484c12db32841 Mon Sep 17 00:00:00 2001 From: Alex Yang <32620988+DatProJack@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:29:22 -0400 Subject: [PATCH] imageUrl, location -> mandatory --- src/services/events/events-schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/events/events-schema.ts b/src/services/events/events-schema.ts index 4ff8d6b..dbe92a4 100644 --- a/src/services/events/events-schema.ts +++ b/src/services/events/events-schema.ts @@ -12,8 +12,8 @@ export const publicEventValidator = z.object({ points: z.number().min(0), description: z.string(), isVirtual: z.boolean(), - imageUrl: z.string().nullable().optional(), - location: z.string().nullable().optional(), + imageUrl: z.string().nullable(), + location: z.string().nullable(), eventType: EventType, });