mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
userAdmin mapping with optional emailContact
This commit is contained in:
parent
18177cf5f1
commit
c265ce5989
@ -6,11 +6,11 @@ import { ObjectType, Field, Int } from 'type-graphql'
|
||||
export class UserAdmin {
|
||||
constructor(user: User, creation: Decimal[], hasElopage: boolean, emailConfirmationSend: string) {
|
||||
this.userId = user.id
|
||||
this.email = user.emailContact.email
|
||||
this.email = user.emailContact?.email
|
||||
this.firstName = user.firstName
|
||||
this.lastName = user.lastName
|
||||
this.creation = creation
|
||||
this.emailChecked = user.emailContact.emailChecked
|
||||
this.emailChecked = user.emailContact?.emailChecked
|
||||
this.hasElopage = hasElopage
|
||||
this.deletedAt = user.deletedAt
|
||||
this.emailConfirmationSend = emailConfirmationSend
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user