aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-22 21:02:11 -0800
committerAdam Soltys <[email protected]>2024-11-22 21:02:11 -0800
commit41ff5eb1261ad0878b080b5a85f6553223108429 (patch)
tree0b3c5fc90c8f6ad9b8c5e2a9af5dedff0fde1af9 /routes
parent4c0d9d92d610add0bd253a37380de5e0acd5367f (diff)
downloadcoinos-server-41ff5eb1261ad0878b080b5a85f6553223108429.tar.gz
coinos-server-41ff5eb1261ad0878b080b5a85f6553223108429.zip
migrate info endpoint
Diffstat (limited to 'routes')
-rw-r--r--routes/info.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/info.ts b/routes/info.ts
index 8892b7f7..e24d4621 100644
--- a/routes/info.ts
+++ b/routes/info.ts
@@ -21,7 +21,7 @@ export default {
);
const lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0));
- const cash = getDecodedToken(await g("cash")).token[0].proofs.reduce(
+ const cash = getDecodedToken(await g("cash")).proofs.reduce(
(a, b) => a + b.amount,
0,
);