diff options
| author | Adam Soltys <[email protected]> | 2022-10-06 03:22:11 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-06 03:22:11 +0000 |
| commit | 397e77d8fec8f7455919468a98a8292b2de78228 (patch) | |
| tree | 02e4c7b8a0821e7bdc947f0903a16f26a0c87ec2 /routes/bitcoin | |
| parent | fb91aa048617f0894e01c1e890ec957a3170539f (diff) | |
| download | coinos-server-397e77d8fec8f7455919468a98a8292b2de78228.tar.gz coinos-server-397e77d8fec8f7455919468a98a8292b2de78228.zip | |
env vars
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/receive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index 665cc2bc..eb1c7868 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -67,7 +67,7 @@ zmqRawTx.on("message", async (topic, message, sequence) => { transaction }); - const invoice = await db.Invoice.findOne({ + let invoice = await db.Invoice.findOne({ where: { address, user_id: user.id, @@ -185,7 +185,7 @@ setInterval(async () => { for (let i = 0; i < arr.length; i++) { const hash = arr[i]; - let account, address, user, total; + let account, address, invoice, user, total; await db.transaction(async transaction => { let payments = await db.Payment.findAll({ where: { hash, confirmed: 0, received: 1 }, |
