🐛 fix bans

This commit is contained in:
Flam3rboy
2021-08-10 01:48:56 +02:00
parent 57e397b540
commit b36e4af9d3
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ router.get("/", async (req: Request, res: Response) => {
const guild = await GuildModel.exists({ id: guild_id });
if (!guild) throw new HTTPError("Guild not found", 404);
var bans = await BanModel.find({ guild_id: guild_id }, { user: true, reason: true }).exec();
var bans = await BanModel.find({ guild_id: guild_id }, { user_id: true, reason: true }).exec();
return res.json(toObject(bans));
});