aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index ced60060..5494a5b0 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -37,7 +37,7 @@ export default {
let uid = await g(`user:${username}`);
if (!uid) {
let u = await got(`${classic}/admin/migrate/${username}?zero=true`, {
- headers: { authorization: `Bearer ${admin}` },
+ headers: { authorization: `Bearer ${admin}` }
}).json();
if (!u) fail("user not found");
@@ -58,7 +58,7 @@ export default {
let metadata = JSON.stringify([
["text/plain", `Paying ${username}@${host}`],
- ["text/identifier", `${username}@${host}`],
+ ["text/identifier", `${username}@${host}`]
]);
let id = v4();
@@ -69,7 +69,7 @@ export default {
maxSendable: 100000000,
metadata,
callback: `${URL}/api/lnurl/${id}`,
- tag: "payRequest",
+ tag: "payRequest"
});
},
@@ -83,7 +83,7 @@ export default {
let metadata = JSON.stringify([
["text/plain", `Paying ${username}@${host}`],
- ["text/identifier", `${username}@${host}`],
+ ["text/identifier", `${username}@${host}`]
]);
let memo = crypto
@@ -94,15 +94,15 @@ export default {
({ text: pr } = await generate({
invoice: {
amount: Math.round(amount / 1000),
- type: types.lightning,
+ type: types.lightning
},
memo,
- user,
+ user
}));
await s(`lnurlp:${id}`, pr);
}
res.send({ pr, routes: [] });
- },
+ }
};