diff options
| author | Adam Soltys <[email protected]> | 2020-07-17 20:55:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-07-17 20:55:59 -0700 |
| commit | 1962a6dcf1bb37bb8beb3fc4c0231d5a504a75fe (patch) | |
| tree | 46ffa53e3f7ebbdb2ea9c9abd1cf64405e1410cd /lib/send.js | |
| parent | 4a8abaa2722b629cebebb677249c3fd4f51292fb (diff) | |
| download | coinos-server-1962a6dcf1bb37bb8beb3fc4c0231d5a504a75fe.tar.gz coinos-server-1962a6dcf1bb37bb8beb3fc4c0231d5a504a75fe.zip | |
memos
Diffstat (limited to 'lib/send.js')
| -rw-r--r-- | lib/send.js | 3 |
1 files changed, 2 insertions, 1 deletions
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, |
