mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
24 lines
648 B
TypeScript
24 lines
648 B
TypeScript
import { AbstractLoggingView } from '@logging/AbstractLogging.view'
|
|
|
|
import { PostUser } from '@/apis/humhub/model/PostUser'
|
|
|
|
import { AccountLoggingView } from './AccountLogging.view'
|
|
import { ProfileLoggingView } from './ProfileLogging.view'
|
|
|
|
export class PostUserLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: PostUser) {
|
|
super()
|
|
}
|
|
|
|
public toJSON(): PostUser {
|
|
return {
|
|
account: new AccountLoggingView(this.self.account).toJSON(),
|
|
profile: new ProfileLoggingView(this.self.profile).toJSON(),
|
|
password: {
|
|
newPassword: '',
|
|
mustChangePassword: false,
|
|
},
|
|
}
|
|
}
|
|
}
|