aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-24 14:46:46 -0800
committerAdam Soltys <[email protected]>2023-01-24 14:46:46 -0800
commitadf35d736de2cd870e363abc28a0989158ea0b5b (patch)
tree3f5b6f1cea7a1db0aafe9b707f8fff8bff1f1c36 /routes/lnurl.js
parentdcec2c0656d4fcb4e7713a46e39b1fccae915f2f (diff)
downloadcoinos-server-adf35d736de2cd870e363abc28a0989158ea0b5b.tar.gz
coinos-server-adf35d736de2cd870e363abc28a0989158ea0b5b.zip
move lnurl routes
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index cb1b75c5..63488033 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -3,7 +3,7 @@ import { l } from "$lib/logging";
import { fail } from "$lib/utils";
import { v4 } from "uuid";
import got from "got";
-import { invoice } from "$lib/invoices";
+import { generate } from "$lib/invoices";
import { bech32 } from "bech32";
export default {
@@ -50,7 +50,7 @@ export default {
let uid = await g(`lnurl:${id}`);
let user = await g(`user:${uid}`);
- ({ text: pr } = await invoice({
+ ({ text: pr } = await generate({
invoice: {
amount,
type: types.lightning