From 4a267791abd8dc637816633a73638936e73cba2d Mon Sep 17 00:00:00 2001 From: Thaneesh Babu Date: Mon, 26 Jun 2023 20:54:08 -0400 Subject: [PATCH] add team based field to hexathon --- docs/src/swagger-output.json | 4 ++++ services/hexathons/src/models/hexathon.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docs/src/swagger-output.json b/docs/src/swagger-output.json index 10465a1f..a88d3079 100644 --- a/docs/src/swagger-output.json +++ b/docs/src/swagger-output.json @@ -4339,6 +4339,10 @@ "type": "boolean", "default": true }, + "isTeamBased": { + "type": "boolean", + "default": true + }, "startDate": { "type": "string", "format": "date-time" diff --git a/services/hexathons/src/models/hexathon.ts b/services/hexathons/src/models/hexathon.ts index eb0ffc28..7aadadd9 100644 --- a/services/hexathons/src/models/hexathon.ts +++ b/services/hexathons/src/models/hexathon.ts @@ -5,6 +5,7 @@ export interface Hexathon extends mongoose.Document { name: string; shortCode: string; isActive: boolean; + isTeamBased: boolean; startDate: Date; endDate: Date; emailHeaderImage?: string; @@ -28,6 +29,10 @@ const hexathonSchema = new Schema({ default: true, index: true, }, + isTeamBased: { + type: Boolean, + default: true, + }, startDate: { type: Date, required: true,