aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-01-30 20:31:59 +0000
committerAdam Soltys <[email protected]>2026-01-30 20:31:59 +0000
commitedd76a99a90d56ab641c48b95dd5891558baa133 (patch)
tree7298026a3823645ab67d7cd8093d7a9c89433ade /lib/payments.ts
parent3e2b756e5b97db690b9a707049060805ca88c9de (diff)
downloadcoinos-server-edd76a99a90d56ab641c48b95dd5891558baa133.tar.gz
coinos-server-edd76a99a90d56ab641c48b95dd5891558baa133.zip
consult archive for older payments
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 931bf167..80aee8b7 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -1,6 +1,6 @@
import config from "$config";
import api from "$lib/api";
-import { db, g, ga, s } from "$lib/db";
+import { db, g, ga, gf, s } from "$lib/db";
import { generate } from "$lib/invoices";
import ln from "$lib/ln";
import { err, l, warn } from "$lib/logging";
@@ -493,7 +493,7 @@ export const sendKeysend = async ({
}) => {
fee = Math.max(Number.parseInt(fee || amount * 0.005), 5);
- let p = await g(`payment:${hash}`);
+ let p = await gf(`payment:${hash}`);
if (p) fail("duplicate keysend");
p = await debit({