diff options
| author | Adam Soltys <[email protected]> | 2022-09-09 17:50:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-09 17:50:15 -0700 |
| commit | a96122878a30a4a8f6ef37279dbcb715d5aafa2b (patch) | |
| tree | be766189818cbcc70407bad80f97c37e5537db84 /lib/sync.js | |
| parent | d2ae5acf545c8b1a4f88f87b8d80b20c9d45245d (diff) | |
| parent | fdb1494a717583a2048861b7c4b1cb6b283d0c0c (diff) | |
| download | coinos-server-a96122878a30a4a8f6ef37279dbcb715d5aafa2b.tar.gz coinos-server-a96122878a30a4a8f6ef37279dbcb715d5aafa2b.zip | |
Merge branch 'prod'
Diffstat (limited to 'lib/sync.js')
| -rw-r--r-- | lib/sync.js | 6 |
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 => ({ |
