chore: code clean-up
This commit is contained in:
parent
057de41678
commit
25f37b0e4f
2 changed files with 0 additions and 14 deletions
|
|
@ -329,9 +329,7 @@
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
checkBalances: async function () {
|
checkBalances: async function () {
|
||||||
console.log('### checkBalances 1', this.charge.hasStaleBalance)
|
|
||||||
if (!this.charge.hasStaleBalance) return
|
if (!this.charge.hasStaleBalance) return
|
||||||
console.log('### checkBalances 2')
|
|
||||||
try {
|
try {
|
||||||
const {data} = await LNbits.api.request(
|
const {data} = await LNbits.api.request(
|
||||||
'GET',
|
'GET',
|
||||||
|
|
@ -365,12 +363,6 @@
|
||||||
this.pendingFunds = utxos
|
this.pendingFunds = utxos
|
||||||
.filter(u => !u.status.confirmed)
|
.filter(u => !u.status.confirmed)
|
||||||
.reduce((t, u) => t + u.value, 0)
|
.reduce((t, u) => t + u.value, 0)
|
||||||
|
|
||||||
console.log(
|
|
||||||
'### charge new funds',
|
|
||||||
this.charge.balance === newBalance,
|
|
||||||
this.charge
|
|
||||||
)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('cannot check pending funds')
|
console.error('cannot check pending funds')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -579,7 +579,6 @@
|
||||||
.filter(c => !c.paid && !c.time_elapsed && !c.hasStaleBalance)
|
.filter(c => !c.paid && !c.time_elapsed && !c.hasStaleBalance)
|
||||||
.map(c => c.id)
|
.map(c => c.id)
|
||||||
.join(',')
|
.join(',')
|
||||||
console.log('### activeLinkIds', activeLinkIds)
|
|
||||||
await LNbits.api.request(
|
await LNbits.api.request(
|
||||||
'GET',
|
'GET',
|
||||||
'/satspay/api/v1/charges/balance/' + activeLinkIds,
|
'/satspay/api/v1/charges/balance/' + activeLinkIds,
|
||||||
|
|
@ -623,11 +622,6 @@
|
||||||
.reduce((t, u) => t + u.value, 0)
|
.reduce((t, u) => t + u.value, 0)
|
||||||
|
|
||||||
charge.hasStaleBalance = charge.balance === newBalance
|
charge.hasStaleBalance = charge.balance === newBalance
|
||||||
console.log(
|
|
||||||
'### charge new funds',
|
|
||||||
charge.balance === newBalance,
|
|
||||||
charge
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue