gradido/backend/src/logging/BalanceLogging.view.ts
einhornimmond 1df250620b lint, fix
2024-06-19 12:13:18 +02:00

20 lines
524 B
TypeScript

import { AbstractLoggingView } from '@logging/AbstractLogging.view'
import { Balance } from '@/graphql/model/Balance'
export class BalanceLoggingView extends AbstractLoggingView {
public constructor(private self: Balance) {
super()
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public toJSON(): any {
return {
balance: this.decimalToString(this.self.balance),
balanceGDT: this.self.balanceGDT,
count: this.self.count,
linkCount: this.self.linkCount,
}
}
}