Skip to content

Commit

Permalink
member projection: select avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 authored Dec 9, 2023
1 parent 9d266f1 commit 2d8bba4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/entities/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const MemberPrivateProjection: (keyof Member)[] = [
"roles",
"settings",
"user",
"avatar",
];

@Entity("members")
Expand Down Expand Up @@ -522,7 +523,8 @@ export type PublicMemberKeys =
| "pending"
| "deaf"
| "mute"
| "premium_since";
| "premium_since"
| "avatar";

export const PublicMemberProjection: PublicMemberKeys[] = [
"id",
Expand All @@ -534,6 +536,7 @@ export const PublicMemberProjection: PublicMemberKeys[] = [
"deaf",
"mute",
"premium_since",
"avatar",
];

export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & {
Expand Down

0 comments on commit 2d8bba4

Please sign in to comment.