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 { ObjectType, Field } from 'type-graphql'
|
||||||
import Decimal from 'decimal.js-light'
|
import Decimal from 'decimal.js-light'
|
||||||
import CONFIG from '@/config'
|
|
||||||
|
|
||||||
@ObjectType()
|
@ObjectType()
|
||||||
export class Balance {
|
export class Balance {
|
||||||
@ -11,7 +10,6 @@ export class Balance {
|
|||||||
balanceGDT: number | null
|
balanceGDT: number | null
|
||||||
count: number
|
count: number
|
||||||
linkCount: number
|
linkCount: number
|
||||||
decayStartBlock?: Date
|
|
||||||
lastBookedDate?: Date | null
|
lastBookedDate?: Date | null
|
||||||
}) {
|
}) {
|
||||||
this.balance = data.balance
|
this.balance = data.balance
|
||||||
@ -20,7 +18,6 @@ export class Balance {
|
|||||||
this.balanceGDT = data.balanceGDT || null
|
this.balanceGDT = data.balanceGDT || null
|
||||||
this.count = data.count
|
this.count = data.count
|
||||||
this.linkCount = data.linkCount
|
this.linkCount = data.linkCount
|
||||||
this.decayStartBlock = data.decayStartBlock || CONFIG.DECAY_START_TIME
|
|
||||||
this.lastBookedDate = data.lastBookedDate || null
|
this.lastBookedDate = data.lastBookedDate || null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,9 +43,6 @@ export class Balance {
|
|||||||
@Field(() => Number)
|
@Field(() => Number)
|
||||||
linkCount: number
|
linkCount: number
|
||||||
|
|
||||||
@Field(() => Date)
|
|
||||||
decayStartBlock: Date
|
|
||||||
|
|
||||||
// may be null as there may be no transaction
|
// may be null as there may be no transaction
|
||||||
@Field(() => Date, { nullable: true })
|
@Field(() => Date, { nullable: true })
|
||||||
lastBookedDate: Date | null
|
lastBookedDate: Date | null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user