mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
18 lines
562 B
TypeScript
18 lines
562 B
TypeScript
import { PendingTransactionState } from 'shared'
|
|
import { PendingTransaction, Transaction } from '../entity'
|
|
import { AbstractLoggingView } from './AbstractLogging.view'
|
|
import { TransactionLoggingView } from './TransactionLogging.view'
|
|
|
|
export class PendingTransactionLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: PendingTransaction) {
|
|
super()
|
|
}
|
|
|
|
public toJSON(): any {
|
|
return {
|
|
...new TransactionLoggingView(this.self as Transaction).toJSON(),
|
|
state: PendingTransactionState[this.self.state],
|
|
}
|
|
}
|
|
}
|