summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorxnacly <matteogropp@gmail.com>2021-04-08 17:54:12 +0200
committerxnacly <matteogropp@gmail.com>2021-04-08 17:54:12 +0200
commit8599b25a379ce83614b4bee016912032614f9826 (patch)
tree5e1664bd37e714acb1eb416fc6211b54aaf9c840 /src
parentfinished /invite route #21 (diff)
downloadserver-8599b25a379ce83614b4bee016912032614f9826.tar.xz
update invite schema
Diffstat (limited to 'src')
-rw-r--r--src/schema/Invite.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/schema/Invite.ts b/src/schema/Invite.ts
index 61f566d1..3c944037 100644
--- a/src/schema/Invite.ts
+++ b/src/schema/Invite.ts
@@ -1,4 +1,7 @@
 export const InviteCreateSchema = {
+	$target_user_id: String,
+	$target_type: String,
+	$validate: String, //? wtf is this
 	$max_age: Number,
 	$max_uses: Number,
 	$temporary: Boolean,
@@ -7,6 +10,9 @@ export const InviteCreateSchema = {
 	$target_user_type: Number,
 };
 export interface InviteCreateSchema {
+	target_user_id?: String;
+	target_type?: String;
+	validate?: String; //? wtf is this
 	max_age?: Number;
 	max_uses?: Number;
 	temporary?: Boolean;