From 526b21bc668c453250ebce8dece9ba330bac0133 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 14 Feb 2026 15:46:01 -0800 Subject: custodial ark sends --- lib/lightning.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lightning.ts') diff --git a/lib/lightning.ts b/lib/lightning.ts index e4c2e3cb..4824d9ab 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -1,4 +1,4 @@ -import { db, g, s } from "$lib/db"; +import { db, g, s, scan } from "$lib/db"; import ln, { lnListen, LightningUnavailableError } from "$lib/ln"; import { err, l, warn } from "$lib/logging"; import { handleZap } from "$lib/nostr"; @@ -171,7 +171,7 @@ export async function replay(index) { } export const fixBolt12 = async (_, res) => { - for await (const k of db.scanIterator({ MATCH: "payment:*" })) { + for await (const k of scan("payment:*")) { const p = await g(k); if (p.type === "bolt12") { console.log(k); -- cgit v1.2.3