Skip to content

Commit

Permalink
Merge pull request #48 from tanish35/master
Browse files Browse the repository at this point in the history
Minor change to rebuild
  • Loading branch information
tanish35 authored Aug 4, 2024
2 parents 4516ac9 + 759d205 commit 8a3c252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/controllers/postController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] });
}
Expand Down

0 comments on commit 8a3c252

Please sign in to comment.