mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-04-24 23:27:04 -05:00
Removed 'await' on respondCommunityNotFound() calls
This commit is contained in:
parent
0c46b33be6
commit
acd9a211f2
|
|
@ -68,7 +68,7 @@ router.get('/', async function (request: express.Request, response: express.Resp
|
|||
|
||||
const parentCommunity: HydratedCommunityDocument | null = await getCommunityByTitleID(request.paramPack.title_id);
|
||||
if (!parentCommunity) {
|
||||
await respondCommunityNotFound(response);
|
||||
respondCommunityNotFound(response);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ router.post('/', multer().none(), async function (request: express.Request, resp
|
|||
|
||||
const parentCommunity: HydratedCommunityDocument | null = await getCommunityByTitleID(request.paramPack.title_id);
|
||||
if (!parentCommunity) {
|
||||
await respondCommunityNotFound(response);
|
||||
respondCommunityNotFound(response);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user