member projection: select avatar

This commit is contained in:
Puyodead1 2023-12-09 14:07:54 -05:00
parent 9d266f1dba
commit 0a6f6a095d
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
2 changed files with 400 additions and 520 deletions

File diff suppressed because it is too large Load Diff

View File

@ -136,7 +136,7 @@ export class Member extends BaseClassWithoutId {
joined_by: string; joined_by: string;
@Column({ nullable: true }) @Column({ nullable: true })
avatar: string; avatar?: string;
@Column({ nullable: true }) @Column({ nullable: true })
banner: string; banner: string;
@ -522,7 +522,8 @@ export type PublicMemberKeys =
| "pending" | "pending"
| "deaf" | "deaf"
| "mute" | "mute"
| "premium_since"; | "premium_since"
| "avatar";
export const PublicMemberProjection: PublicMemberKeys[] = [ export const PublicMemberProjection: PublicMemberKeys[] = [
"id", "id",
@ -534,6 +535,7 @@ export const PublicMemberProjection: PublicMemberKeys[] = [
"deaf", "deaf",
"mute", "mute",
"premium_since", "premium_since",
"avatar",
]; ];
export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & { export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & {