🐛 fix invites: ajv doesn't treat null as undefined

This commit is contained in:
Flam3rboy
2021-09-13 00:00:11 +02:00
parent 33533fc183
commit e32bb24fa8
4 changed files with 266 additions and 333 deletions
@@ -9,8 +9,8 @@ const router: Router = Router();
export interface InviteCreateSchema {
target_user_id?: string;
target_type?: string;
validate?: string; //? wtf is this
target_type?: string | null;
validate?: string | null; // ? what is this
max_age?: number;
max_uses?: number;
temporary?: boolean;