marginally improve the checkpending situation.

This commit is contained in:
fiatjaf
2021-03-21 17:11:00 -03:00
parent e4fb18a53a
commit f27c2ebc21
3 changed files with 34 additions and 30 deletions
+5 -7
View File
@@ -52,13 +52,11 @@ window.LNbits = {
getWallet: function (wallet) {
return this.request('get', '/api/v1/wallet', wallet.inkey)
},
getPayments: function (wallet, checkPending) {
var query_param = checkPending ? '?check_pending' : ''
return this.request(
'get',
['/api/v1/payments', query_param].join(''),
wallet.inkey
)
checkPending: function (wallet) {
return this.request('post', '/api/v1/checkpending', wallet.inkey)
},
getPayments: function (wallet) {
return this.request('get', '/api/v1/payments', wallet.inkey)
},
getPayment: function (wallet, paymentHash) {
return this.request(