Add firstTransaction boolean to Transaction.

This commit is contained in:
ogerly 2022-02-07 11:32:09 +01:00 committed by elweyn
parent 27d4623137
commit 8c6aafcedb

View File

@ -15,6 +15,7 @@ export class Transaction {
this.balance = 0 this.balance = 0
this.totalBalance = 0 this.totalBalance = 0
this.memo = '' this.memo = ''
this.firstTransaction = false
} }
@Field(() => String) @Field(() => String)
@ -26,15 +27,6 @@ export class Transaction {
@Field(() => Number) @Field(() => Number)
totalBalance: number totalBalance: number
@Field({ nullable: true })
decayStart?: string
@Field({ nullable: true })
decayEnd?: string
@Field({ nullable: true })
decayDuration?: number
@Field(() => String) @Field(() => String)
memo: string memo: string
@ -52,4 +44,7 @@ export class Transaction {
@Field({ nullable: true }) @Field({ nullable: true })
decay?: Decay decay?: Decay
@Field(() => Boolean)
firstTransaction: boolean
} }