From 5b616db5c0ffc00f161fe478ffedac2095672f7d Mon Sep 17 00:00:00 2001 From: Sebastian-Webster <84299475+Sebastian-Webster@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:11:35 +1300 Subject: [PATCH] remove post viewedBy --- libraries/ImagePost.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/ImagePost.js b/libraries/ImagePost.js index f0c86385..ece88434 100644 --- a/libraries/ImagePost.js +++ b/libraries/ImagePost.js @@ -12,6 +12,7 @@ class ImagePostClass { 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: "Image"}),