This commit is contained in:
Flam3rboy 2021-08-18 12:41:44 +02:00
parent e214c71a79
commit 95d7084887

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