From 23fa7f40f1cbc94238f836876a31480a4a23b785 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 8 Aug 2020 22:35:24 -0700 Subject: track outgoing bitcoin payments --- routes/bitcoin/send.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index 1ce1da54..744f8f29 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -87,6 +87,7 @@ module.exports = ah(async (req, res) => { emit(user.username, "payment", payment); res.send(payment); + payments.push(params.hash); l.info("sent bitcoin", user.username, total); } catch (e) { l.error("error sending bitcoin", e.message); -- cgit v1.2.3