From 1702f380eb0724ecee5d7c5c1d34beb86ab552b0 Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Tue, 24 Dec 2024 12:41:30 +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 ff8ebde..b54e88a 100644 --- a/src/controllers/community.controller.ts +++ b/src/controllers/community.controller.ts @@ -22,7 +22,7 @@ const getCommunities = catchAsync(async function (req: IAuthRequest, res: Respon } options.populate = { path: 'platforms', - select: '_id name metadata disconnectedAt', + select: '_id name metadata disconnectedAt createdAt updatedAt', }; const communities = await communityService.getCommunities({});