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 | 95d7084887958ab9ff4c5140bb45502b5fd9f2ca (patch) | |
tree | be09417b1e59135cd0fe99b6126a5a4f7c1c8ccb | |
parent | :bug: fix guild channel reorder (diff) | |
download | server-95d7084887958ab9ff4c5140bb45502b5fd9f2ca.tar.xz |
:bug: fix #267
-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 |