mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-26 08:41:04 +02:00
chore: code clean-up
This commit is contained in:
parent
057de41678
commit
25f37b0e4f
@ -329,9 +329,7 @@
|
||||
)
|
||||
},
|
||||
checkBalances: async function () {
|
||||
console.log('### checkBalances 1', this.charge.hasStaleBalance)
|
||||
if (!this.charge.hasStaleBalance) return
|
||||
console.log('### checkBalances 2')
|
||||
try {
|
||||
const {data} = await LNbits.api.request(
|
||||
'GET',
|
||||
@ -365,12 +363,6 @@
|
||||
this.pendingFunds = utxos
|
||||
.filter(u => !u.status.confirmed)
|
||||
.reduce((t, u) => t + u.value, 0)
|
||||
|
||||
console.log(
|
||||
'### charge new funds',
|
||||
this.charge.balance === newBalance,
|
||||
this.charge
|
||||
)
|
||||
} catch (error) {
|
||||
console.error('cannot check pending funds')
|
||||
}
|
||||
|
@ -579,7 +579,6 @@
|
||||
.filter(c => !c.paid && !c.time_elapsed && !c.hasStaleBalance)
|
||||
.map(c => c.id)
|
||||
.join(',')
|
||||
console.log('### activeLinkIds', activeLinkIds)
|
||||
await LNbits.api.request(
|
||||
'GET',
|
||||
'/satspay/api/v1/charges/balance/' + activeLinkIds,
|
||||
@ -623,11 +622,6 @@
|
||||
.reduce((t, u) => t + u.value, 0)
|
||||
|
||||
charge.hasStaleBalance = charge.balance === newBalance
|
||||
console.log(
|
||||
'### charge new funds',
|
||||
charge.balance === newBalance,
|
||||
charge
|
||||
)
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user