Add missing fields to application model
This commit is contained in:
parent
730f7d5b34
commit
52e9fee664
1 changed files with 10 additions and 0 deletions
|
@ -17,12 +17,22 @@ export default class Application {
|
|||
@Field(() => String)
|
||||
public iconColor!: string;
|
||||
|
||||
@Field(() => String, {
|
||||
nullable: true,
|
||||
})
|
||||
public homepage!: string | null;
|
||||
|
||||
@Field(() => Boolean)
|
||||
public verified!: boolean;
|
||||
|
||||
public static fromEntity(entity: ApplicationEntity): Application {
|
||||
return {
|
||||
id: entity._id.toHexString(),
|
||||
iconColor: entity.iconColor,
|
||||
iconUrl: entity.iconUrl,
|
||||
name: entity.name,
|
||||
homepage: entity.homepage,
|
||||
verified: entity.verified,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue