summary refs log tree commit diff
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 11:41:36 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 11:41:36 -0500
commita6e68abbdcc6d5df3fb8fdf95a5cb8de82213f2e (patch)
tree6e3217d22bf54db0013e79453133923acf846718
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-a6e68abbdcc6d5df3fb8fdf95a5cb8de82213f2e.tar.xz
Models: User can have a NULL email in case it is an unclaimed account
-rw-r--r--src/models/User.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/User.ts b/src/models/User.ts

index 6c69d589..2b4f43b9 100644 --- a/src/models/User.ts +++ b/src/models/User.ts
@@ -27,7 +27,7 @@ export interface User { mfa_enabled: boolean; // if multi factor authentication is enabled created_at: Date; // registration date verified: boolean; // if the user is offically verified - email: string; // email of the user + email: string | null; // email of the user flags: bigint; // UserFlags public_flags: bigint; user_settings: UserSettings;