invoices boostrap at auth
This commit is contained in:
parent
e6b2d0f896
commit
71c239d432
1 changed files with 18 additions and 1 deletions
|
|
@ -695,7 +695,24 @@ module.exports = async (
|
|||
alias,
|
||||
publicKey
|
||||
},
|
||||
follows: await GunGetters.Follows.currentFollows()
|
||||
follows: await GunGetters.Follows.currentFollows(),
|
||||
data: {
|
||||
invoices: await Common.makePromise((res, rej) => {
|
||||
lightning.listInvoices(
|
||||
{
|
||||
reversed: true,
|
||||
num_max_invoices: 50
|
||||
},
|
||||
(err, lres) => {
|
||||
if (err) {
|
||||
rej(new Error(err.details))
|
||||
} else {
|
||||
res(lres)
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue