summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 18:12:07 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 18:12:07 +0100
commiteca7b96de39e5e4b0feead4c874dd60d395fd91c (patch)
treec79f6d16c85d2e2d17b286a94b7ae385327a2e64 /src/routes
parent:bug: fix db (diff)
downloadserver-eca7b96de39e5e4b0feead4c874dd60d395fd91c.tar.xz
:bug: fix token checking
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/api/v8/guilds/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/api/v8/guilds/index.ts b/src/routes/api/v8/guilds/index.ts

index 93d5292e..f2c9d556 100644 --- a/src/routes/api/v8/guilds/index.ts +++ b/src/routes/api/v8/guilds/index.ts
@@ -169,10 +169,11 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) = data: guild, guild_id: guildID, } as GuildCreateEvent); + + res.status(201).json({ id: guild.id }); } catch (error) { throw new HTTPError("Couldnt create Guild", 500); } - res.status(201).json({ id: guild.id }); }); router.delete("/:id", async (req: Request, res: Response) => {