invoices boostrap at auth

This commit is contained in:
Daniel Lugo 2020-09-28 11:56:21 -04:00
parent e6b2d0f896
commit 71c239d432

View file

@ -695,7 +695,24 @@ module.exports = async (
alias, alias,
publicKey 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 return true