From a1632ae402d11fdd7ffc360de97c55e0b4fad677 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 14:14:30 -0800 Subject: migrate to hono --- 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 a259b601..3b1882d4 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -164,7 +164,7 @@ export async function replay(index) { } } -export const fixBolt12 = async (_, res) => { +export const fixBolt12 = async (c) => { for await (const k of scan("payment:*")) { const p = await g(k); if (p.type === "bolt12") { @@ -182,5 +182,5 @@ export const fixBolt12 = async (_, res) => { } } - res.send({}); + return c.json({}); }; -- cgit v1.2.3