From 14513b1c93129895a02e0c1f679f7ca590dab3f8 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Thu, 16 Nov 2023 20:43:27 +0530 Subject: [PATCH] fix: remove required --- src/models/brackets.js | 2 -- src/models/casters.js | 2 -- src/models/events.js | 2 -- src/models/rosters.js | 4 ---- src/models/streams.js | 2 -- 5 files changed, 12 deletions(-) diff --git a/src/models/brackets.js b/src/models/brackets.js index 85435fb..63ffc52 100644 --- a/src/models/brackets.js +++ b/src/models/brackets.js @@ -7,11 +7,9 @@ const brackets = new Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, event: { type: Schema.Types.ObjectId, diff --git a/src/models/casters.js b/src/models/casters.js index ee3dd2d..dd585c3 100644 --- a/src/models/casters.js +++ b/src/models/casters.js @@ -11,11 +11,9 @@ const casters = new Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, twitter: { type: String, diff --git a/src/models/events.js b/src/models/events.js index 4a448d1..983207c 100644 --- a/src/models/events.js +++ b/src/models/events.js @@ -8,11 +8,9 @@ const events = new mongoose.Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, streams: [{ type: mongoose.Schema.Types.ObjectId, diff --git a/src/models/rosters.js b/src/models/rosters.js index 64b9e81..555cdee 100644 --- a/src/models/rosters.js +++ b/src/models/rosters.js @@ -30,11 +30,9 @@ const players = new Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, account: { type: String, @@ -49,11 +47,9 @@ const rosters = new Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, logo: { type: String, diff --git a/src/models/streams.js b/src/models/streams.js index 4d4298e..e3910bc 100644 --- a/src/models/streams.js +++ b/src/models/streams.js @@ -7,11 +7,9 @@ const streams = new Schema({ }, name_arabic: { type: String, - required: true, }, name_jpn: { type: String, - required: true, }, event: { type: Schema.Types.ObjectId,