diff options
| author | Adam Soltys <[email protected]> | 2022-04-20 15:57:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-04-20 15:57:20 -0700 |
| commit | 98ba0e685636bfcaedd560a30192809bc2407aab (patch) | |
| tree | 94e1f7e83fdd30ff439dc5536ee945e999d5ae8c /routes/bitcoin/receive.js | |
| parent | d72de475b6621fb6ef31c03c2cf4d3ca1e82f5f2 (diff) | |
| download | coinos-server-98ba0e685636bfcaedd560a30192809bc2407aab.tar.gz coinos-server-98ba0e685636bfcaedd560a30192809bc2407aab.zip | |
allow address re-use
Diffstat (limited to 'routes/bitcoin/receive.js')
| -rw-r--r-- | routes/bitcoin/receive.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index e74f9394..5d8e21e7 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -68,15 +68,6 @@ zmqRawTx.on("message", async (topic, message, sequence) => { if (!invoice) return; - let payment = await db.Payment.findOne({ - where: { - invoice_id: invoice.id - }, - order: [["id", "DESC"]], - }); - - if (payment) return; - const currency = invoice ? invoice.currency : user.currency; const rate = invoice ? invoice.rate : app.get("rates")[user.currency]; const tip = invoice ? invoice.tip : 0; @@ -113,7 +104,7 @@ zmqRawTx.on("message", async (topic, message, sequence) => { } let fee = totalInputs - totalOutputs; - payment = await db.Payment.create({ + let payment = await db.Payment.create({ account_id: account.id, user_id: user.id, hash, |
