summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-14 09:38:21 +0200
committerAlTech98 <altech123159@gmail.com>2021-09-14 09:38:21 +0200
commit8f68c4abcf8cb1e15a694795a3a13538bc4f1dcc (patch)
tree4dcb3359f67ba82bec03d1c3365a3c00a9ae94cf /api/src
parentMerge pull request #358 from AlTech98/fix-356 (diff)
downloadserver-8f68c4abcf8cb1e15a694795a3a13538bc4f1dcc.tar.xz
Fix invites creation
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/channels/#channel_id/invites.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/invites.ts b/api/src/routes/channels/#channel_id/invites.ts
index 2edb4fc2..71612e31 100644
--- a/api/src/routes/channels/#channel_id/invites.ts
+++ b/api/src/routes/channels/#channel_id/invites.ts
@@ -8,7 +8,7 @@ import { isTextChannel } from "./messages";
 const router: Router = Router();
 
 export interface InviteCreateSchema {
-	target_user_id?: string;
+	target_user_id?: string | null;
 	target_type?: string | null;
 	validate?: string | null; // ? what is this
 	max_age?: number;