From 4b0860cbf43b0eab06f7447951d8e2edcc887cf6 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 05:53:32 +0530 Subject: [PATCH] model issue --- src/ws/crud.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index 397e1fc..bfc771b 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -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) => {