diff options
| author | Adam Soltys <[email protected]> | 2026-02-28 14:14:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-28 14:14:30 -0800 |
| commit | a1632ae402d11fdd7ffc360de97c55e0b4fad677 (patch) | |
| tree | aad5a1ea73f95dcd055c1d0b4ebf2708c36b4e01 /lib/lightning.ts | |
| parent | 76c7e52172f3dc25ee109434157d4d982ad9d2bd (diff) | |
| download | coinos-server-a1632ae402d11fdd7ffc360de97c55e0b4fad677.tar.gz coinos-server-a1632ae402d11fdd7ffc360de97c55e0b4fad677.zip | |
migrate to hono
Diffstat (limited to 'lib/lightning.ts')
| -rw-r--r-- | lib/lightning.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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({}); }; |
