aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync.js')
-rw-r--r--lib/sync.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sync.js b/lib/sync.js
index 536bd582..62d13b24 100644
--- a/lib/sync.js
+++ b/lib/sync.js
@@ -75,12 +75,14 @@ const sync = async () => {
]
});
- let { invoices } = await getInvoices({ lnd, limit: 200 });
+ let { invoices } = await getInvoices({ lnd, limit: 1000 });
+ let x = invoices.find(i => i.request.includes('lnbc10100u1p333l3lpp5znwsrpr9g'));
+ let cancelled = invoices.filter(i => i.is_canceled);
let recent = invoices
.filter(
i =>
- i.secret &&
+ i.is_confirmed &&
differenceInDays(new Date(), new Date(i.created_at)) < 2
)
.map(i => ({