Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
fix: community details data fetching bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SHUHAIB-T committed Mar 10, 2024
1 parent 1774ff6 commit b04344e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion server/controller/community.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down
2 changes: 1 addition & 1 deletion server/routes/communityRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b04344e

Please sign in to comment.