diff options
author | Puyodead1 <puyodead@proton.me> | 2023-12-09 14:07:54 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-12-09 14:07:54 -0500 |
commit | 0a6f6a095d160192b6e2350d53abc40eb678c099 (patch) | |
tree | cacc49bdbb0c152fb874c71593747a2f78f6306a /src/util/entities/Member.ts | |
parent | ensure client_id is specified in authorize post (diff) | |
download | server-0a6f6a095d160192b6e2350d53abc40eb678c099.tar.xz |
member projection: select avatar
Diffstat (limited to '')
-rw-r--r-- | src/util/entities/Member.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index 0535313e..65942816 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -136,7 +136,7 @@ export class Member extends BaseClassWithoutId { joined_by: string; @Column({ nullable: true }) - avatar: string; + avatar?: string; @Column({ nullable: true }) banner: string; @@ -522,7 +522,8 @@ export type PublicMemberKeys = | "pending" | "deaf" | "mute" - | "premium_since"; + | "premium_since" + | "avatar"; export const PublicMemberProjection: PublicMemberKeys[] = [ "id", @@ -534,6 +535,7 @@ export const PublicMemberProjection: PublicMemberKeys[] = [ "deaf", "mute", "premium_since", + "avatar", ]; export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & { |