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;
|
||||
lightning.listInvoices(
|
||||
{ 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) {
|
||||
logger.debug('ListInvoices Error:', err)
|
||||
const health = await checkHealth()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue