diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-10 01:48:56 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-10 01:48:56 +0200 |
commit | b36e4af9d31212f2c1474161ccdd1760cef812a3 (patch) | |
tree | 7680fc194aaaf79ade17e0f0b9b00d2a55c8262c /src/routes/guilds/#guild_id/bans.ts | |
parent | :bug: fix Member not deleted on guild delete (diff) | |
download | server-b36e4af9d31212f2c1474161ccdd1760cef812a3.tar.xz |
:bug: fix bans
Diffstat (limited to 'src/routes/guilds/#guild_id/bans.ts')
-rw-r--r-- | src/routes/guilds/#guild_id/bans.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/#guild_id/bans.ts b/src/routes/guilds/#guild_id/bans.ts index 4d9bad37..d9752f61 100644 --- a/src/routes/guilds/#guild_id/bans.ts +++ b/src/routes/guilds/#guild_id/bans.ts @@ -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)); }); |