diff --git a/backend/controllers/eclair/fees.js b/backend/controllers/eclair/fees.js index 4d02048e..7c60516f 100644 --- a/backend/controllers/eclair/fees.js +++ b/backend/controllers/eclair/fees.js @@ -126,7 +126,8 @@ export const getPayments = (req, res, next) => { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } options.url = req.session.selectedNode.ln_server_url + '/audit'; - options.form = null; + const tillToday = (Math.round(new Date(Date.now()).getTime() / 1000)).toString(); + options.form = { from: 0, to: tillToday }; if (common.read_dummy_data) { common.getDummyData('Payments', req.session.selectedNode.ln_implementation).then((data) => { res.status(200).json(arrangePayments(req.session.selectedNode, data)); }); } diff --git a/backend/controllers/eclair/invoices.js b/backend/controllers/eclair/invoices.js index 2bf68cf2..6992db93 100644 --- a/backend/controllers/eclair/invoices.js +++ b/backend/controllers/eclair/invoices.js @@ -59,13 +59,14 @@ export const listInvoices = (req, res, next) => { if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } - options.form = {}; + const tillToday = (Math.round(new Date(Date.now()).getTime() / 1000)).toString(); + options.form = { from: 0, to: tillToday }; const options1 = JSON.parse(JSON.stringify(options)); options1.url = req.session.selectedNode.ln_server_url + '/listinvoices'; - options1.form = {}; + options1.form = { from: 0, to: tillToday }; const options2 = JSON.parse(JSON.stringify(options)); options2.url = req.session.selectedNode.ln_server_url + '/listpendinginvoices'; - options2.form = {}; + options2.form = { from: 0, to: tillToday }; if (common.read_dummy_data) { return common.getDummyData('Invoices', req.session.selectedNode.ln_implementation).then((body) => { const invoices = (!body[0] || body[0].length <= 0) ? [] : body[0]; diff --git a/frontend/index.html b/frontend/index.html index 7a1d9bca..77932785 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,7 +13,7 @@