summary refs log tree commit diff
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
commit95d7084887958ab9ff4c5140bb45502b5fd9f2ca (patch)
treebe09417b1e59135cd0fe99b6126a5a4f7c1c8ccb
parent:bug: fix guild channel reorder (diff)
downloadserver-95d7084887958ab9ff4c5140bb45502b5fd9f2ca.tar.xz
:bug: fix #267
-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