summary refs log tree commit diff
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 12:25:16 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 12:25:16 -0500
commit17773e9dbf5c1cbc17452da74462e6f74c0186ba (patch)
treea9ca10d4faaee48da9aa5645aa4c38f3dc7ed12e
parentModels: User can have a NULL email in case it is an unclaimed account (diff)
downloadserver-17773e9dbf5c1cbc17452da74462e6f74c0186ba.tar.xz
Models: Update avatar to reflect the new NULL changes
-rw-r--r--src/models/Event.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/Event.ts b/src/models/Event.ts

index 6f2a7444..635adc46 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts
@@ -49,7 +49,7 @@ export interface ReadyEventData { user: PublicUser & { mobile: boolean; desktop: boolean; - email: string; + email: string | null ; flags: bigint; mfa_enabled: boolean; nsfw_allowed: boolean; @@ -104,7 +104,7 @@ export interface ReadyEventData { merged_members?: Omit<Member, "settings" | "user">[][]; // probably all users who the user is in contact with users?: { - avatar?: string; + avatar: string | null; discriminator: string; id: string; username: string;