aboutsummaryrefslogtreecommitdiffstats
path: root/lib/nwc.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-11 13:40:05 -0800
committerAdam Soltys <[email protected]>2025-02-11 13:40:05 -0800
commitde7435e34580e1a9b4b8d95b2a5013112414098f (patch)
tree97074cadf3a63512c2c5f554a3083924fd046b74 /lib/nwc.ts
parent8add46c0975686ce0967c2c38514a31aad6ee8cb (diff)
downloadcoinos-server-de7435e34580e1a9b4b8d95b2a5013112414098f.tar.gz
coinos-server-de7435e34580e1a9b4b8d95b2a5013112414098f.zip
default app on register
Diffstat (limited to 'lib/nwc.ts')
-rw-r--r--lib/nwc.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index 2774b0d8..3f346b87 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -2,7 +2,7 @@ import config from "$config";
import { db, g } from "$lib/db";
import { generate } from "$lib/invoices";
import ln from "$lib/ln";
-import { err } from "$lib/logging";
+import { err, l } from "$lib/logging";
import { handleZap, serverPubkey } from "$lib/nostr";
import { sendInternal, sendKeysend, sendLightning } from "$lib/payments";
import { getInvoice, sleep } from "$lib/utils";
@@ -228,6 +228,7 @@ const handle = (method, params, ev, app, user) =>
async make_invoice() {
const { amount, description, description_hash, expiry } = params;
+ l("nwc make_invoice", user.username);
const invoice = {
amount: Math.round(amount / 1000),