fix: remove required

main
Ayush Mukherjee 1 year ago
parent 4eeca06bbf
commit 14513b1c93

@ -7,11 +7,9 @@ const brackets = new Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
event: { event: {
type: Schema.Types.ObjectId, type: Schema.Types.ObjectId,

@ -11,11 +11,9 @@ const casters = new Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
twitter: { twitter: {
type: String, type: String,

@ -8,11 +8,9 @@ const events = new mongoose.Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
streams: [{ streams: [{
type: mongoose.Schema.Types.ObjectId, type: mongoose.Schema.Types.ObjectId,

@ -30,11 +30,9 @@ const players = new Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
account: { account: {
type: String, type: String,
@ -49,11 +47,9 @@ const rosters = new Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
logo: { logo: {
type: String, type: String,

@ -7,11 +7,9 @@ const streams = new Schema({
}, },
name_arabic: { name_arabic: {
type: String, type: String,
required: true,
}, },
name_jpn: { name_jpn: {
type: String, type: String,
required: true,
}, },
event: { event: {
type: Schema.Types.ObjectId, type: Schema.Types.ObjectId,

Loading…
Cancel
Save