diff options
| author | Adam Soltys <[email protected]> | 2024-01-26 11:30:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-26 11:30:25 -0800 |
| commit | 2be8d6816f46eb1b980573a13079a072a91acb36 (patch) | |
| tree | 6eb3e074fd799be589de92edfda7c28c43b29abd /routes | |
| parent | 328bab418d727182086f1df3bd5e3de6aa1b1fcf (diff) | |
| download | coinos-server-2be8d6816f46eb1b980573a13079a072a91acb36.tar.gz coinos-server-2be8d6816f46eb1b980573a13079a072a91acb36.zip | |
track seen payments in zset
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/payments.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routes/payments.js b/routes/payments.js index 6e0f1159..edcc6b72 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -250,9 +250,8 @@ export default { if (!p) return db.sAdd("missed", id); if (p.confirmed) return; - let iid = await g(`invoice:${address}`); - if (iid && iid.hash) iid = iid.hash; - let invoice = await g(`invoice:${iid}`); + let invoice = await getInvoice(address); + let { id: iid } = invoice; p.confirmed = true; invoice.received += parseInt(invoice.pending); |
