summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-04 00:41:02 +0100
committerRory& <root@rory.gay>2026-02-04 00:41:02 +0100
commit7ebf9cd4d1f37de61c5e356d1cbb571a7bac396f (patch)
tree0be84c8070bfe4607e6cf53c86890f5eabde31e4
parentMerge remote-tracking branch 'mathium05/threadFixes' (diff)
downloadserver-ts-7ebf9cd4d1f37de61c5e356d1cbb571a7bac396f.tar.xz
Fix req.params for thread creation
-rw-r--r--src/api/routes/channels/#channel_id/threads.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/threads.ts b/src/api/routes/channels/#channel_id/threads.ts

index 430716b5..cf30407d 100644 --- a/src/api/routes/channels/#channel_id/threads.ts +++ b/src/api/routes/channels/#channel_id/threads.ts
@@ -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({