mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
backend remove startblock from balance object
This commit is contained in:
parent
b15d0b8a61
commit
bccc5d1ddb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user