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 2, 2024
1 parent 4215ea5 commit a2769c0
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 a2769c0

Please sign in to comment.