Update roles.ts

This commit is contained in:
Intevel ツ 2021-05-08 15:03:38 +02:00
parent 643f0c9723
commit 2d73dffa9a

View File

@ -9,7 +9,7 @@ import { getPublicUser } from "../../../util/User";
const router: Router = Router();
router.get("/", async (req: Request, res: Response) => {
const guild_id = req.params.id;
const guild_id = req.params.guild_id;
const guild = await GuildModel.exists({ id: guild_id });
if (!guild) throw new HTTPError("Guild not found", 404);