Renamed appID to communityID in communities/:id/posts to better match usage

This commit is contained in:
Jonathan Barrow
2023-04-25 16:01:54 -04:00
parent 510e75dc38
commit 6f0f9dcf4d

View File

@@ -74,11 +74,11 @@ router.get('/new', async function (_request: express.Request, response: express.
response.send(newCommunities);
});
router.get('/:appID/posts', async function (request: express.Request, response: express.Response): Promise<void> {
router.get('/:communityID/posts', async function (request: express.Request, response: express.Response): Promise<void> {
response.type('application/xml');
let community: HydratedCommunityDocument | null = await Community.findOne({
community_id: request.params.appID
community_id: request.params.communityID
});
if (!community) {