diff options
| author | Adam Soltys <[email protected]> | 2020-03-20 21:42:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-20 21:42:29 -0700 |
| commit | 8bcbbe89a9cd82447984d9d688d7282e7bf1aab8 (patch) | |
| tree | be39d7dd1171521b5858f05aba1a7c14fe6bfa47 | |
| parent | 5a4a00c56d647d1cbe3eb90207e066ca875c8258 (diff) | |
| download | coinos-server-8bcbbe89a9cd82447984d9d688d7282e7bf1aab8.tar.gz coinos-server-8bcbbe89a9cd82447984d9d688d7282e7bf1aab8.zip | |
fix pay to user
| -rw-r--r-- | routes/lightning/user.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/lightning/user.js b/routes/lightning/user.js index c361600c..bb812e05 100644 --- a/routes/lightning/user.js +++ b/routes/lightning/user.js @@ -9,6 +9,8 @@ module.exports = async (req, res) => { } }); + l.info("paying user", req.user.username, payuser); + if (!user) { return res.status(500).send("Couldn't find the user you're trying to pay"); } @@ -35,7 +37,7 @@ module.exports = async (req, res) => { asset: 'LNBTC', }); - req.url = "/sendPayment"; + req.url = "/lightning/send"; let payreq = bolt11.decode(hash); const { routes } = await lna.queryRoutes({ "pub_key": payreq.payeeNodeKey, "amt": payreq.satoshis }); if (routes.length) req.body.route = routes[0]; |
