mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 06:21:53 +01:00
feat: use single charge endpoint for balance
This commit is contained in:
parent
40f5cf77f6
commit
6da62c648a
1 changed files with 3 additions and 4 deletions
|
@ -323,10 +323,9 @@
|
|||
try {
|
||||
const {data} = await LNbits.api.request(
|
||||
'GET',
|
||||
`/satspay/api/v1/charges/balance/${this.charge.id}`,
|
||||
`/satspay/api/v1/charge/balance/${this.charge.id}`,
|
||||
'filla'
|
||||
)
|
||||
|
||||
this.charge.time_elapsed = data.time_elapsed
|
||||
this.charge.amount = data.amount
|
||||
this.charge.balance = data.balance
|
||||
|
@ -344,8 +343,8 @@
|
|||
|
||||
try {
|
||||
const utxos = await addressesAPI.getAddressTxsUtxo({
|
||||
address: this.charge.onchainaddress
|
||||
})
|
||||
address: this.charge.onchainaddress
|
||||
})
|
||||
|
||||
this.pendingFunds = utxos
|
||||
.filter(u => !u.status.confirmed)
|
||||
|
|
Loading…
Add table
Reference in a new issue