mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 12:42:44 +01:00
🐛 fix #267
This commit is contained in:
parent
52d0aa72f5
commit
2cff55f1f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user