From 4cb1662ce7abd9ff6a274bc05174858fd9fdf6a6 Mon Sep 17 00:00:00 2001 From: Sebastian-Webster <84299475+Sebastian-Webster@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:14:39 +1300 Subject: [PATCH] removed viewedBt from post processors --- libraries/PollPost.js | 1 + libraries/ThreadPost.js | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/PollPost.js b/libraries/PollPost.js index a35359dc..4f9f0f4e 100644 --- a/libraries/PollPost.js +++ b/libraries/PollPost.js @@ -11,6 +11,7 @@ class PollPost { Promise.all( posts.map(post => { delete post.creatorId + delete post.viewedBy return new Promise((resolve, reject) => { Promise.all([ Upvote.countDocuments({postId: {$eq: post._id}, postFormat: "Poll"}), diff --git a/libraries/ThreadPost.js b/libraries/ThreadPost.js index c21c4286..dcd5bf0c 100644 --- a/libraries/ThreadPost.js +++ b/libraries/ThreadPost.js @@ -13,6 +13,7 @@ class ThreadPost { Promise.all( posts.map(post => { delete post.creatorId + delete post.viewedBy return new Promise((resolve, reject) => { Promise.all([ Upvote.countDocuments({postId: {$eq: post._id}, postFormat: "Thread"}),