Skip to content

Commit

Permalink
changed back eventType to mandatory from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
riyap committed Jul 3, 2024
1 parent 82a3da8 commit 04ea0df
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 @@ -13,7 +13,7 @@ export const publicEventValidator = z.object({
description: z.string(),
isVirtual: z.boolean(),
imageUrl: z.string().nullable().optional(),
eventType: EventType.optional(),
eventType: EventType,
});

export const privateEventValidator = publicEventValidator.extend({
Expand Down Expand Up @@ -66,7 +66,7 @@ export const EventSchema = new Schema({
},
eventType: {
type: String,
required: false,
required: true,
enum: EventType.Values,
},
});
Expand Down

0 comments on commit 04ea0df

Please sign in to comment.