aboutsummaryrefslogtreecommitdiffstats
path: root/routes/info.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
committerAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
commit32f01e3e328db0006a55c6324625b49d60244b66 (patch)
treeb97866549b919964957365e1e05681e85af7021a /routes/info.ts
parenta1632ae402d11fdd7ffc360de97c55e0b4fad677 (diff)
downloadcoinos-server-32f01e3e328db0006a55c6324625b49d60244b66.tar.gz
coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.zip
fix typescript issues
Diffstat (limited to 'routes/info.ts')
-rw-r--r--routes/info.ts5
1 files changed, 1 insertions, 4 deletions
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));