diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-18 12:41:44 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-18 12:41:44 +0200 |
commit | 2cff55f1f9c8ac1c6c4b858c9522d1f327995ec1 (patch) | |
tree | d20e909212c71827f41fbba90b9060ae584300fd /api/src/routes/guilds | |
parent | :bug: fix guild channel reorder (diff) | |
download | server-2cff55f1f9c8ac1c6c4b858c9522d1f327995ec1.tar.xz |
:bug: fix #267
Diffstat (limited to 'api/src/routes/guilds')
-rw-r--r-- | api/src/routes/guilds/#guild_id/channels.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/channels.ts b/api/src/routes/guilds/#guild_id/channels.ts index 30d4797b..1c55ef24 100644 --- a/api/src/routes/guilds/#guild_id/channels.ts +++ b/api/src/routes/guilds/#guild_id/channels.ts @@ -24,7 +24,7 @@ router.post("/", check(ChannelModifySchema), async (req: Request, res: Response) const channel = await createChannel({ ...body, guild_id }, req.user_id); - res.json(toObject(channel)); + res.status(201).json(toObject(channel)); }); // TODO: check if parent_id exists |