summary refs log tree commit diff
path: root/api/src/routes/guilds/#guild_id
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-18 12:41:44 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-18 12:41:44 +0200
commit2cff55f1f9c8ac1c6c4b858c9522d1f327995ec1 (patch)
treed20e909212c71827f41fbba90b9060ae584300fd /api/src/routes/guilds/#guild_id
parent:bug: fix guild channel reorder (diff)
downloadserver-2cff55f1f9c8ac1c6c4b858c9522d1f327995ec1.tar.xz
:bug: fix #267
Diffstat (limited to 'api/src/routes/guilds/#guild_id')
-rw-r--r--api/src/routes/guilds/#guild_id/channels.ts2
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