model issue

main
Ayush Mukherjee 4 years ago
parent 398eca33e5
commit 4b0860cbf4

@ -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) => {

Loading…
Cancel
Save