aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.ts4
-rw-r--r--routes/nostr.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 5a9c0990..59fc6ba1 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -6,7 +6,7 @@ import got from "got";
import { generate } from "$lib/invoices";
import { bech32 } from "bech32";
import { types } from "$lib/payments";
-import { COINOS_PUBKEY } from "$lib/nostr";
+import { serverPubkey } from "$lib/nostr";
let { URL } = process.env;
let host = URL.split("/").at(-1);
@@ -68,7 +68,7 @@ export default {
minSendable,
maxSendable,
metadata,
- nostrPubkey: COINOS_PUBKEY,
+ nostrPubkey: serverPubkey,
callback: `${URL}/api/lnurl/${id}`,
tag: "payRequest",
});
diff --git a/routes/nostr.ts b/routes/nostr.ts
index 51b4e1ea..9bbff33d 100644
--- a/routes/nostr.ts
+++ b/routes/nostr.ts
@@ -1,6 +1,6 @@
import { bail, nada, getUser, uniq } from "$lib/utils";
import { g, db } from "$lib/db";
-import { pool, q, COINOS_PUBKEY } from "$lib/nostr";
+import { pool, q, serverPubkey } from "$lib/nostr";
export default {
async event(req, res) {
@@ -226,6 +226,6 @@ export default {
},
async info(_, res) {
- res.send({ pubkey: COINOS_PUBKEY });
+ res.send({ pubkey: serverPubkey });
},
};