1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00
This commit is contained in:
Flam3rboy 2021-08-18 12:41:44 +02:00
parent 52d0aa72f5
commit 2cff55f1f9

View File

@ -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