From 584bdc1863636e0d4815dcb442fb8e0b1cfb39b6 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 05:50:09 +0530 Subject: [PATCH] model issue --- src/ws/crud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index 3b57f63..702e9a4 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -85,7 +85,7 @@ const matchFns = { const streamFns = { getAll: async () => { - return await streams.find().populate('event').populate('matches').populate('casters').populate('hosts').exec() + return await streams.find().populate('event').populate('matches matches.orange matches.blue').populate('casters').populate('hosts').exec() }, getById: async (id) => { return await streams.findById(id).populate('event').populate('matches').populate('casters').populate('hosts').exec()