From 9a6c25530aef1d77bc98a74c461e312012253b33 Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Tue, 24 Dec 2024 12:13:59 +0100 Subject: [PATCH] feat: add createdAt updatedAt to response of community --- src/controllers/community.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/community.controller.ts b/src/controllers/community.controller.ts index 4901e1c..ff8ebde 100644 --- a/src/controllers/community.controller.ts +++ b/src/controllers/community.controller.ts @@ -37,7 +37,7 @@ const getCommunity = catchAsync(async function (req: IAuthRequest, res: Response if (community) { await community?.populate({ path: 'platforms', - select: '_id name metadata disconnectedAt', + select: '_id name metadata disconnectedAt createdAt updatedAt', }); community = await communityService.populateRoles(community); }