From b2c342ee5217175fbf0c0a65745b0a4609fe697b Mon Sep 17 00:00:00 2001 From: AishwaryaC26 Date: Sun, 25 Aug 2024 17:12:15 -0400 Subject: [PATCH] Update event model to not require end date --- services/hexathons/src/models/event.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/hexathons/src/models/event.ts b/services/hexathons/src/models/event.ts index f5aabb57..766eff23 100644 --- a/services/hexathons/src/models/event.ts +++ b/services/hexathons/src/models/event.ts @@ -24,7 +24,7 @@ export interface Event extends mongoose.Document { type: EventType; description: string; startDate: Date; - endDate: Date; + endDate?: Date; location: AutoPopulatedDoc[]; tags: AutoPopulatedDoc[]; } @@ -57,7 +57,7 @@ const eventSchema = new Schema({ }, endDate: { type: Date, - required: true, + required: false, }, location: { type: [