1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00

Fix invites creation

This commit is contained in:
AlTech98 2021-09-14 09:38:21 +02:00
parent 12fbba82ba
commit 8f68c4abcf
2 changed files with 5 additions and 2 deletions

View File

@ -713,7 +713,10 @@
"type": "object",
"properties": {
"target_user_id": {
"type": "string"
"type": [
"null",
"string"
]
},
"target_type": {
"type": [

View File

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