diff --git a/src/ws/crud.js b/src/ws/crud.js index 671d057..65339aa 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -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()