aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-04 17:08:25 -0700
committerAdam Soltys <[email protected]>2021-08-04 17:08:25 -0700
commitf7e54dbc88a625286e848780d7a220a56a314d2f (patch)
tree90500c1db3db9b4550e7852cec1798bd7c027da7 /routes/bitcoin
parentada0daac6f74753bf7c50f260aaa999c36d43838 (diff)
downloadcoinos-server-f7e54dbc88a625286e848780d7a220a56a314d2f.tar.gz
coinos-server-f7e54dbc88a625286e848780d7a220a56a314d2f.zip
don't wait for webhook to complete
Diffstat (limited to 'routes/bitcoin')
-rw-r--r--routes/bitcoin/receive.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js
index d782627d..67ccdb45 100644
--- a/routes/bitcoin/receive.js
+++ b/routes/bitcoin/receive.js
@@ -114,7 +114,7 @@ zmqRawTx.on("message", async (topic, message, sequence) => {
emit(user.username, "payment", payment);
l.info("bitcoin detected", user.username, value);
notify(user, `${value} SAT payment detected`);
- await callWebhook(invoice, payment);
+ callWebhook(invoice, payment);
}
} catch (e) {
console.log(e);
@@ -189,7 +189,7 @@ setInterval(async () => {
emit(user.username, "payment", p);
l.info("bitcoin confirmed", user.username, p.amount, p.tip);
notify(user, `${total} SAT payment confirmed`);
- await callWebhook(p.invoice, p);
+ callWebhook(p.invoice, p);
} else {
l.warn("couldn't find bitcoin payment", hash);
}