diff --git a/src/controllers/custom/getGuildController.ts b/src/controllers/custom/getGuildController.ts index 18df338f..4902c3c1 100644 --- a/src/controllers/custom/getGuildController.ts +++ b/src/controllers/custom/getGuildController.ts @@ -33,7 +33,8 @@ export const getGuildController: RequestHandler = async (req, res) => { ...guild.toObject(), Members: members }); + } else { + res.status(400).end(); } } - res.end(); }; diff --git a/static/webui/index.html b/static/webui/index.html index 9375ecd4..5bf8c628 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -59,7 +59,7 @@ -