|
|
|
@ -94,7 +94,10 @@ const streamFns = {
|
|
|
|
|
}).populate('casters').populate('hosts').exec()
|
|
|
|
|
},
|
|
|
|
|
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({
|
|
|
|
|
path: 'matches',
|
|
|
|
|
populate: [{ path: 'orange' }, { path: 'blue' }],
|
|
|
|
|
}).populate('casters').populate('hosts').exec()
|
|
|
|
|
},
|
|
|
|
|
update: async(id, data) => {
|
|
|
|
|
return await streams.findByIdAndUpdate(id, data).exec()
|
|
|
|
|