From 8d604819fcf570e9697168cd5586c070592f5b21 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 04:59:05 +0530 Subject: [PATCH] model issue --- src/ws/crud.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index 91018c6..3b57f63 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -59,10 +59,10 @@ const rosterFns = { const matchFns = { getAll: async () => { - return await matches.find().populate('orange').populate('blue').populate('stream').exec() + return await matches.find().populate('orange').populate('blue').exec() }, getById: async (id) => { - return await matches.findById(id).populate('orange').populate('blue').populate('stream').exec() + return await matches.findById(id).populate('orange').populate('blue').exec() }, update: async(id, data) => { return await matches.findByIdAndUpdate(id, data).exec()