aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-14 15:46:01 -0800
committerAdam Soltys <[email protected]>2026-02-14 15:46:01 -0800
commit526b21bc668c453250ebce8dece9ba330bac0133 (patch)
tree5e9c84a2cca6b4a5766c6cdc9f33f6c62f5776f3 /lib/lightning.ts
parent843c343db567cd224dadf347ac16736bdc8b24a8 (diff)
downloadcoinos-server-526b21bc668c453250ebce8dece9ba330bac0133.tar.gz
coinos-server-526b21bc668c453250ebce8dece9ba330bac0133.zip
custodial ark sends
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts4
1 files changed, 2 insertions, 2 deletions
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);