mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
linting database
This commit is contained in:
parent
bdaf48b29e
commit
a013f84814
@ -17,24 +17,25 @@ export class UserContactLoggingView extends AbstractLoggingView {
|
|||||||
|
|
||||||
public toJSON(): any {
|
public toJSON(): any {
|
||||||
return {
|
return {
|
||||||
self: this.self ?
|
self: this.self
|
||||||
{
|
? {
|
||||||
id: this.self.id,
|
id: this.self.id,
|
||||||
type: this.self.type,
|
type: this.self.type,
|
||||||
user:
|
user:
|
||||||
this.showUser && this.self.user
|
this.showUser && this.self.user
|
||||||
? new UserLoggingView(this.self.user).toJSON()
|
? new UserLoggingView(this.self.user).toJSON()
|
||||||
: { id: this.self.userId },
|
: { id: this.self.userId },
|
||||||
email: this.self.email?.substring(0, 3) + '...',
|
email: this.self.email?.substring(0, 3) + '...',
|
||||||
emailVerificationCode: this.self.emailVerificationCode?.substring(0, 4) + '...',
|
emailVerificationCode: this.self.emailVerificationCode?.substring(0, 4) + '...',
|
||||||
emailOptInTypeId: OptInType[this.self.emailOptInTypeId],
|
emailOptInTypeId: OptInType[this.self.emailOptInTypeId],
|
||||||
emailResendCount: this.self.emailResendCount,
|
emailResendCount: this.self.emailResendCount,
|
||||||
emailChecked: this.self.emailChecked,
|
emailChecked: this.self.emailChecked,
|
||||||
phone: this.self.phone ? this.self.phone.substring(0, 3) + '...' : undefined,
|
phone: this.self.phone ? this.self.phone.substring(0, 3) + '...' : undefined,
|
||||||
createdAt: this.dateToString(this.self.createdAt),
|
createdAt: this.dateToString(this.self.createdAt),
|
||||||
updatedAt: this.dateToString(this.self.updatedAt),
|
updatedAt: this.dateToString(this.self.updatedAt),
|
||||||
deletedAt: this.dateToString(this.self.deletedAt),
|
deletedAt: this.dateToString(this.self.deletedAt),
|
||||||
} : undefined
|
}
|
||||||
|
: undefined,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user