diff options
| -rw-r--r-- | lib/webhooks.js | 2 | ||||
| -rw-r--r-- | routes/bitcoin/receive.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/webhooks.js b/lib/webhooks.js index 86e1a07b..c282ceea 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -12,7 +12,7 @@ callWebhook = (invoice, payment) => { let { asset } = account; let secret = config.webhooks[webhook]; - l.info("calling webhook", webhook); + l.info("calling webhook", webhook, amount, hash, address, text); return wretch() .headers({ "x-webhook": secret }) .url(webhook) diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index d9274935..327d1a0c 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -54,6 +54,7 @@ zmqRawTx.on("message", async (topic, message, sequence) => { const invoice = await db.Invoice.findOne({ where: { + address, user_id: user.id, network: "bitcoin", }, |
