Skip to content

Commit

Permalink
Merge pull request #473 from SquareTable/472-remove-viewedby-from-pos…
Browse files Browse the repository at this point in the history
…t-processors

Remove viewedBy from post processors
  • Loading branch information
Sebastian-Webster authored Nov 12, 2024
2 parents a3bd506 + 4cb1662 commit 84291e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/PollPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}),
Expand Down
1 change: 1 addition & 0 deletions libraries/ThreadPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}),
Expand Down

0 comments on commit 84291e7

Please sign in to comment.