member projection: select avatar
This commit is contained in:
parent
9d266f1dba
commit
0a6f6a095d
File diff suppressed because it is too large
Load Diff
@ -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"> & {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user