From edd76a99a90d56ab641c48b95dd5891558baa133 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 30 Jan 2026 20:31:59 +0000 Subject: consult archive for older payments --- lib/payments.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/payments.ts') 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({ -- cgit v1.2.3