diff --git a/src/routes.js b/src/routes.js index aa1e00ed..2a1b7182 100644 --- a/src/routes.js +++ b/src/routes.js @@ -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