mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
import { User } from '@entity/User'
|
|
|
|
import { AbstractLoggingView } from './AbstractLogging.view'
|
|
|
|
export class UserLoggingView extends AbstractLoggingView {
|
|
public constructor(private user: User) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
id: this.user.id,
|
|
gradidoId: this.user.gradidoID,
|
|
derive1Pubkey: this.user.derive1Pubkey.toString(this.bufferStringFormat),
|
|
createdAt: this.dateToString(this.user.createdAt),
|
|
confirmedAt: this.dateToString(this.user.confirmedAt),
|
|
}
|
|
}
|
|
}
|