From 1962a6dcf1bb37bb8beb3fc4c0231d5a504a75fe Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 17 Jul 2020 20:55:47 -0700 Subject: memos --- lib/send.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/send.js') diff --git a/lib/send.js b/lib/send.js index 71209456..7850da08 100644 --- a/lib/send.js +++ b/lib/send.js @@ -1,6 +1,6 @@ const bolt11 = require("bolt11"); -send = async (amount, hash, user) => { +send = async (amount, memo, hash, user) => { let payreq = bolt11.decode(hash); if (!amount) amount = payreq.satoshis; @@ -93,6 +93,7 @@ send = async (amount, hash, user) => { account_id: account.id, user_id: user.id, hash, + memo, preimage, rate: app.get("rates")[user.currency], currency: user.currency, -- cgit v1.2.3