Skip to content

Commit aeb703f

Browse files
committed
chore: update merged code to use new community API
1 parent ccd18c4 commit aeb703f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/juxtaposition-ui/src/services/juxt-web/routes/console/communities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ communitiesRouter.get('/:communityID', async function (req, res) {
7878
if (!tid) {
7979
return res.redirect('/404');
8080
}
81-
const community = await database.getCommunityByTitleID(tid);
81+
const { data: community } = await req.api.communities.get({ id: `tid:${tid}` });
8282
if (!community) {
8383
return res.redirect('/404');
8484
}

0 commit comments

Comments
 (0)