From 05649f406447a8ff68cb2827df2880b6056af09d Mon Sep 17 00:00:00 2001 From: prayansh_chhablani Date: Mon, 2 Sep 2024 23:31:16 +0530 Subject: [PATCH] fixed likedby image issue --- src/resolvers/Organization/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/Organization/posts.ts b/src/resolvers/Organization/posts.ts index 1b14907bc6..3be5b98325 100644 --- a/src/resolvers/Organization/posts.ts +++ b/src/resolvers/Organization/posts.ts @@ -81,7 +81,7 @@ export const posts: OrganizationResolvers["posts"] = async ( .limit(parsedArgs.limit) .populate({ path: 'likedBy', - select: 'image', + select: 'image' }) .lean() .exec(),