From b04344eee4309f922ab31afbc03e77466ff788bf Mon Sep 17 00:00:00 2001 From: Shuhaib T U Date: Mon, 11 Mar 2024 03:14:11 +0530 Subject: [PATCH] fix: community details data fetching bug fixed --- server/controller/community.js | 1 - server/routes/communityRoute.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/controller/community.js b/server/controller/community.js index d517853..b37d304 100644 --- a/server/controller/community.js +++ b/server/controller/community.js @@ -198,7 +198,6 @@ const getmyCommunities = async (req, res, next) => { const getDetails = async (req, res, next) => { try { const id = req.params.id; - console.log(id) if (!id) { throw new Error('communit not found') } diff --git a/server/routes/communityRoute.js b/server/routes/communityRoute.js index 9fcdf42..8fee829 100644 --- a/server/routes/communityRoute.js +++ b/server/routes/communityRoute.js @@ -10,7 +10,7 @@ router.post('/join', isLogedIn, joinCommunity) router.get('/pending-request/:id', isLogedIn, pendingRequest) router.post('/accept-join', isLogedIn, acceptJoin) router.get('/my-communities', isLogedIn, getmyCommunities) -router.get('/get-details/:id', isLogedIn, getDetails) +router.get('/get_details/:id', isLogedIn, getDetails) //discussion