mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 18:15:41 +00:00
Fix req.params for thread creation
This commit is contained in:
@@ -49,7 +49,7 @@ router.post(
|
||||
}),
|
||||
async (req: Request, res: Response) => {
|
||||
// TODO: check for differences with https://github.com/spacebarchat/server/pull/876/files#diff-95be9c4cdfd8ba6f67361cd40b9abc8226b35d83e2bb44bf5b4682f1d66155e9
|
||||
const { channel_id } = req.params;
|
||||
const { channel_id } = req.params as { [key: string]: string };
|
||||
const body = req.body as ThreadCreationSchema;
|
||||
|
||||
const channel = await Channel.findOneOrFail({
|
||||
|
||||
Reference in New Issue
Block a user