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