diff options
| author | Adam Soltys <[email protected]> | 2026-01-30 20:31:59 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-01-30 20:31:59 +0000 |
| commit | edd76a99a90d56ab641c48b95dd5891558baa133 (patch) | |
| tree | 7298026a3823645ab67d7cd8093d7a9c89433ade /routes/lnurl.ts | |
| parent | 3e2b756e5b97db690b9a707049060805ca88c9de (diff) | |
| download | coinos-server-edd76a99a90d56ab641c48b95dd5891558baa133.tar.gz coinos-server-edd76a99a90d56ab641c48b95dd5891558baa133.zip | |
consult archive for older payments
Diffstat (limited to 'routes/lnurl.ts')
| -rw-r--r-- | routes/lnurl.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 729cca58..0358488e 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -1,4 +1,4 @@ -import { db, g, s } from "$lib/db"; +import { db, g, gf, s } from "$lib/db"; import { generate } from "$lib/invoices"; import { err, warn } from "$lib/logging"; import { serverPubkey2 } from "$lib/nostr"; @@ -126,7 +126,7 @@ export default { } const invoice = iid - ? await g(`invoice:${iid}`) + ? await gf(`invoice:${iid}`) : await generate({ invoice: { amount: Math.round(amount / 1000), |
