From 759d205a8d3a555878322420a342b6a9905865d5 Mon Sep 17 00:00:00 2001 From: tanish35 <tanishmajumdar2912@gmail.com> Date: Sun, 4 Aug 2024 22:52:19 +0530 Subject: [PATCH] Minor change to rebuild --- backend/src/controllers/postController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/controllers/postController.ts b/backend/src/controllers/postController.ts index 9190f38..0d9640e 100644 --- a/backend/src/controllers/postController.ts +++ b/backend/src/controllers/postController.ts @@ -21,7 +21,9 @@ const getCommunities = asyncHandler(async (req: Request, res: Response) => { }, distinct: ["college_id"], }); + // @ts-ignore const communityIds = communities.map((community) => community.college_id); + // @ts-ignore if (communityIds.length === 0) { return res.status(200).json({ communityIds: [] }); }