model issue

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

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

Loading…
Cancel
Save