From b4d4268e6e6b23a49fa6b3a8d886c168525639f3 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 04:39:08 +0530 Subject: [PATCH] fix remove populate --- src/ws/crud.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index bf5f9fb..c26aa87 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -111,10 +111,10 @@ const streamFns = { const casterFns = { getAll: async () => { - return await casters.find().populate('streams').exec() + return await casters.find().exec() }, getById: async (id) => { - return await casters.findById(id).populate('streams').exec() + return await casters.findById(id).exec() }, update: async(id, data) => { return await casters.findByIdAndUpdate(id, data).exec() @@ -137,10 +137,10 @@ const casterFns = { const hostFns = { getAll: async () => { - return await hosts.find().populate('streams').exec() + return await hosts.find().exec() }, getById: async (id) => { - return await hosts.findById(id).populate('streams').exec() + return await hosts.findById(id).exec() }, update: async(id, data) => { return await hosts.findByIdAndUpdate(id, data).exec()