model issue

main
Ayush Mukherjee 4 years ago
parent b53b50f831
commit 057d8201fa

@ -9,18 +9,18 @@ const streams = new Schema({
type: Schema.Types.ObjectId, type: Schema.Types.ObjectId,
ref: 'Event', ref: 'Event',
}, },
matches: { matches: [{
type: [Schema.Types.ObjectId], type: Schema.Types.ObjectId,
ref: 'Matches', ref: 'Matches',
}, }],
casters: { casters: [{
type: [Schema.Types.ObjectId], type: Schema.Types.ObjectId,
ref: 'Casters', ref: 'Casters',
}, }],
hosts: { hosts: [{
type: [Schema.Types.ObjectId], type: Schema.Types.ObjectId,
ref: 'Hosts', ref: 'Hosts',
}, }],
}) })
const Stream = model('Streams', streams) const Stream = model('Streams', streams)

Loading…
Cancel
Save