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: [] }); }