backend remove startblock from balance object

This commit is contained in:
Ulf Gebhardt 2022-04-06 15:22:32 +02:00
parent b15d0b8a61
commit bccc5d1ddb
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -1,6 +1,5 @@
import { ObjectType, Field } from 'type-graphql'
import Decimal from 'decimal.js-light'
import CONFIG from '@/config'
@ObjectType()
export class Balance {
@ -11,7 +10,6 @@ export class Balance {
balanceGDT: number | null
count: number
linkCount: number
decayStartBlock?: Date
lastBookedDate?: Date | null
}) {
this.balance = data.balance
@ -20,7 +18,6 @@ export class Balance {
this.balanceGDT = data.balanceGDT || null
this.count = data.count
this.linkCount = data.linkCount
this.decayStartBlock = data.decayStartBlock || CONFIG.DECAY_START_TIME
this.lastBookedDate = data.lastBookedDate || null
}
@ -46,9 +43,6 @@ export class Balance {
@Field(() => Number)
linkCount: number
@Field(() => Date)
decayStartBlock: Date
// may be null as there may be no transaction
@Field(() => Date, { nullable: true })
lastBookedDate: Date | null