Skip to content

Commit 84291e7

Browse files
Merge pull request #473 from SquareTable/472-remove-viewedby-from-post-processors
Remove viewedBy from post processors
2 parents a3bd506 + 4cb1662 commit 84291e7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libraries/PollPost.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class PollPost {
1111
Promise.all(
1212
posts.map(post => {
1313
delete post.creatorId
14+
delete post.viewedBy
1415
return new Promise((resolve, reject) => {
1516
Promise.all([
1617
Upvote.countDocuments({postId: {$eq: post._id}, postFormat: "Poll"}),

libraries/ThreadPost.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ThreadPost {
1313
Promise.all(
1414
posts.map(post => {
1515
delete post.creatorId
16+
delete post.viewedBy
1617
return new Promise((resolve, reject) => {
1718
Promise.all([
1819
Upvote.countDocuments({postId: {$eq: post._id}, postFormat: "Thread"}),

0 commit comments

Comments
 (0)