Default values

This commit is contained in:
Daniel Lugo 2022-01-17 13:17:49 -04:00
parent df789c3a31
commit 9ee06b87f8

View file

@ -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()