Skip to content

Commit

Permalink
fixed likedby image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Sep 3, 2024
1 parent 95597d7 commit 164fe8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/resolvers/Organization/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const posts: OrganizationResolvers["posts"] = async (
})
.sort(sort)
.limit(parsedArgs.limit)
.populate({
path: 'likedBy',
select: 'image'
})
.lean()
.exec(),

Expand Down

0 comments on commit 164fe8a

Please sign in to comment.