summary refs log tree commit diff
path: root/src/util/entities/Member.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-09 14:07:54 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-09 14:07:54 -0500
commit0a6f6a095d160192b6e2350d53abc40eb678c099 (patch)
treecacc49bdbb0c152fb874c71593747a2f78f6306a /src/util/entities/Member.ts
parentensure client_id is specified in authorize post (diff)
downloadserver-0a6f6a095d160192b6e2350d53abc40eb678c099.tar.xz
member projection: select avatar
Diffstat (limited to '')
-rw-r--r--src/util/entities/Member.ts6
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"> & {