diff options
| author | Adam Soltys <[email protected]> | 2021-10-06 17:22:11 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-10-06 17:22:11 -0700 |
| commit | 53415cb66da53a97d586391b13a7290e0f64dd12 (patch) | |
| tree | 2ffbdb8e22dd3b7a119b4680bd01bee1a1ac8ba2 | |
| parent | 88837c9ea71cf7a859bdba5c1466c576fc7881be (diff) | |
| download | coinos-server-53415cb66da53a97d586391b13a7290e0f64dd12.tar.gz coinos-server-53415cb66da53a97d586391b13a7290e0f64dd12.zip | |
only fix missed btc payments, check for dupes
| -rw-r--r-- | routes/payments.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js index 1ec8d0b6..42587348 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -199,7 +199,7 @@ ah(async () => { ); let receipts = unaccounted - .filter(tx => tx.category === "receive") + .filter(tx => tx.category === "receive" && tx.asset === config.liquid.btcasset) .map(tx => tx.address); invoices = await db.Invoice.findAll({ @@ -243,6 +243,7 @@ ah(async () => { amount = toSats(amount); await db.transaction(async transaction => { + payments.push(hash); let p = await db.Payment.create( { account_id, |
