Skip to content

Commit

Permalink
add participatedInAssembly to user populate in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xtian7489 committed Feb 28, 2024
1 parent 92be203 commit ea6b33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/projectsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ exports.listComments = async (projectId, articleId = null, version = null, curre
// }).sort({createdAt: -1}).skip((page - 1) * limit).limit(limit);
const commentsArr = await Comment.find(query).populate({
path: 'user',
select: '_id name country',
select: '_id name country participatedInAssembly',
populate: {
path: 'country',
select: '_id name code emoji unicode image'
Expand Down Expand Up @@ -401,7 +401,7 @@ exports.listReplies = async (commentId, currentUserId = null, page = 1, limit =
const query = { comment: commentId }
const repliesArr = await Reply.find(query).populate({
path: 'user',
select: '_id name country',
select: '_id name country participatedInAssembly',
populate: {
path: 'country',
select: '_id name code emoji unicode image'
Expand Down

0 comments on commit ea6b33e

Please sign in to comment.