From 32f01e3e328db0006a55c6324625b49d60244b66 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 15:16:20 -0800 Subject: fix typescript issues --- routes/info.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'routes/info.ts') diff --git a/routes/info.ts b/routes/info.ts index adad02c6..f2bcda1a 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -1,5 +1,4 @@ -import { archive } from "$lib/db"; -import { db, g } from "$lib/db"; +import { g } from "$lib/db"; import { getHealthStatus } from "$lib/health"; import ln from "$lib/ln"; import { getDecodedToken } from "@cashu/cashu-ts"; @@ -12,8 +11,6 @@ export default { }, async balances(c) { - let total = 0; - const funds = await ln.listfunds(); const lnchannel = parseInt(funds.channels.reduce((a, b) => a + b.channel_sat, 0)); const lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); -- cgit v1.2.3