|
|
@ -87,8 +87,7 @@ const streamFns = {
|
|
|
|
getAll: async () => {
|
|
|
|
getAll: async () => {
|
|
|
|
return await streams.find().populate('event').populate({
|
|
|
|
return await streams.find().populate('event').populate({
|
|
|
|
path: 'matches',
|
|
|
|
path: 'matches',
|
|
|
|
populate: { path: 'orange' },
|
|
|
|
populate: [{ path: 'orange' }, { path: 'blue' }],
|
|
|
|
populate: { path: 'blue' },
|
|
|
|
|
|
|
|
}).populate('casters').populate('hosts').exec()
|
|
|
|
}).populate('casters').populate('hosts').exec()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getById: async (id) => {
|
|
|
|
getById: async (id) => {
|
|
|
|