aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-17 21:11:08 +0000
committerAdam Soltys <[email protected]>2022-10-17 21:11:11 +0000
commit250b25bfa332065eb66ab4fd098d1512a4cd7364 (patch)
tree6e4d10d194e8fcdd4ebd6b4ae9b1942cb1c1c13b
parent3afcfd03edbafa489e57c85a4956262d92f2f7d1 (diff)
downloadcoinos-server-250b25bfa332065eb66ab4fd098d1512a4cd7364.tar.gz
coinos-server-250b25bfa332065eb66ab4fd098d1512a4cd7364.zip
rm hostname
-rw-r--r--routes/lnurl.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 683899b0..2a7cb772 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -207,6 +207,7 @@ app.get("/pay/:username", async (req, res, next) => {
app.post("/pay", auth, async (req, res, next) => {
const { user } = req;
+
const {
amount,
comment,
@@ -228,7 +229,6 @@ app.post("/pay", auth, async (req, res, next) => {
memo: comment,
username: recipients[secret].username
},
- hostname,
user
);
@@ -238,6 +238,7 @@ app.post("/pay", auth, async (req, res, next) => {
res.send(await send(amount, "", data.pr, user));
}
} catch (e) {
+ console.log(e);
err("failed to send payment", e.message);
res.code(500).send(e.message);
}