Skip to content

Commit 4cb1662

Browse files
removed viewedBt from post processors
1 parent a3bd506 commit 4cb1662

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)