summary refs log tree commit diff
path: root/src/routes/users
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:10 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:10 +0200
commit70892870161edad2a44ae36bdf9092961ef830bb (patch)
tree4763c7099023784ac7c020ed1dde29223728fd14 /src/routes/users
parent:bug: fix body parser empty error object (diff)
downloadserver-70892870161edad2a44ae36bdf9092961ef830bb.tar.xz
:art: Convert id bigint to string
Diffstat (limited to 'src/routes/users')
-rw-r--r--src/routes/users/@me/guilds.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/users/@me/guilds.ts b/src/routes/users/@me/guilds.ts

index 1b87b51d..6b9243ac 100644 --- a/src/routes/users/@me/guilds.ts +++ b/src/routes/users/@me/guilds.ts
@@ -19,7 +19,7 @@ router.get("/", async (req: Request, res: Response) => { // user send to leave a certain guild router.delete("/:id", async (req: Request, res: Response) => { - const guildID = BigInt(req.params.id); + const guildID = (req.params.id); const guild = await GuildModel.findOne({ id: guildID }).exec(); if (!guild) throw new HTTPError("Guild doesn't exist", 404);