Default values
This commit is contained in:
parent
df789c3a31
commit
9ee06b87f8
1 changed files with 7 additions and 1 deletions
|
|
@ -1296,7 +1296,13 @@ module.exports = async (
|
||||||
// const limit = page * itemsPerPage;
|
// const limit = page * itemsPerPage;
|
||||||
lightning.listInvoices(
|
lightning.listInvoices(
|
||||||
{ reversed, index_offset: offset, num_max_invoices: itemsPerPage },
|
{ reversed, index_offset: offset, num_max_invoices: itemsPerPage },
|
||||||
async (err, { invoices, last_index_offset } = {}) => {
|
async (
|
||||||
|
err,
|
||||||
|
{ invoices, last_index_offset } = {
|
||||||
|
invoices: [],
|
||||||
|
last_index_offset: 1
|
||||||
|
}
|
||||||
|
) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.debug('ListInvoices Error:', err)
|
logger.debug('ListInvoices Error:', err)
|
||||||
const health = await checkHealth()
|
const health = await checkHealth()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue