Skip to content

Commit

Permalink
Merge pull request #116 from ReflectionsProjections/dev/alex/events-l…
Browse files Browse the repository at this point in the history
…ocation-field

eventsSchema + zod: imageUrl, location -> mandatory
  • Loading branch information
AydanPirani authored Aug 13, 2024
2 parents fa205e1 + 3969e1e commit 05f2c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/events/events-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 05f2c9e

Please sign in to comment.