1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 10:11:34 +02:00

Fix invites creation

This commit is contained in:
AlTech98 2021-09-14 09:38:21 +02:00
parent fbf393d45e
commit c32bdf7526
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;