mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change transaction list query to new balance object
This commit is contained in:
parent
e9e97549a7
commit
03da5aa343
@ -45,11 +45,16 @@ export const logout = gql`
|
||||
export const transactionsQuery = gql`
|
||||
query($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
|
||||
transactionList(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
|
||||
balanceGDT
|
||||
count
|
||||
linkCount
|
||||
balance
|
||||
decayStartBlock
|
||||
balance {
|
||||
balance
|
||||
decay
|
||||
lastBookedBalance
|
||||
balanceGDT
|
||||
count
|
||||
linkCount
|
||||
decayStartBlock
|
||||
lastBookedDate
|
||||
}
|
||||
transactions {
|
||||
id
|
||||
typeId
|
||||
|
||||
@ -103,12 +103,14 @@ export default {
|
||||
data: { transactionList },
|
||||
} = result
|
||||
this.GdtBalance =
|
||||
transactionList.balanceGDT === null ? null : Number(transactionList.balanceGDT)
|
||||
transactionList.balance.balanceGDT === null
|
||||
? null
|
||||
: Number(transactionList.balance.balanceGDT)
|
||||
this.transactions = transactionList.transactions
|
||||
this.balance = Number(transactionList.balance)
|
||||
this.transactionCount = transactionList.count
|
||||
this.transactionLinkCount = transactionList.linkCount
|
||||
this.decayStartBlock = new Date(transactionList.decayStartBlock)
|
||||
this.balance = Number(transactionList.balance.balance)
|
||||
this.transactionCount = transactionList.balance.count
|
||||
this.transactionLinkCount = transactionList.balance.linkCount
|
||||
this.decayStartBlock = new Date(transactionList.balance.decayStartBlock)
|
||||
this.pending = false
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user