chore: code clean-up

This commit is contained in:
Vlad Stan 2022-07-11 11:26:43 +03:00
parent 057de41678
commit 25f37b0e4f
2 changed files with 0 additions and 14 deletions

View File

@ -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')
}

View File

@ -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)