aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 80ccc313..f6ae5ea3 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -64,9 +64,9 @@ app.post("/withdraw", auth, async (req, res) => {
}
});
-app.get("/pay/:username", auth, async (req, res) => {
+app.get("/pay/:username", async (req, res) => {
const { username } = req.params;
- let user = await db.user.findOne({
+ let user = await db.User.findOne({
where: {
username,
},
@@ -81,7 +81,7 @@ app.get("/pay/:username", auth, async (req, res) => {
const result = await lnurlServer.generateNewUrl("payRequest", {
minSendable,
maxSendable,
- metadata: JSON.stringify([["text/plain", `fund coinos account ${user.username}`]]),
+ metadata: JSON.stringify([["text/plain", `paying ${user.username}`]]),
});
recipients[result.secret] = req.user;
@@ -104,7 +104,7 @@ app.get("/pay", auth, async (req, res) => {
const result = await lnurlServer.generateNewUrl("payRequest", {
minSendable,
maxSendable,
- metadata: JSON.stringify([["text/plain", `fund coinos account ${user.username}`]]),
+ metadata: JSON.stringify([["text/plain", `paying ${user.username}`]]),
});
recipients[result.secret] = req.user;