diff options
| author | Adam Soltys <[email protected]> | 2025-03-28 18:02:38 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-03-28 18:02:47 +0000 |
| commit | 425e712177de6f2d47e7d0486a347f0cbf4e0d0d (patch) | |
| tree | f80a67393cf381258027edc445273c8c92a1cefd /routes | |
| parent | 6793e625f3be380c10cbc7bfc08b30d7ce7dae5c (diff) | |
| download | coinos-server-425e712177de6f2d47e7d0486a347f0cbf4e0d0d.tar.gz coinos-server-425e712177de6f2d47e7d0486a347f0cbf4e0d0d.zip | |
remove total user balances
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/info.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/routes/info.ts b/routes/info.ts index e24d4621..c6d03e4d 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -7,13 +7,13 @@ export default { async balances(_, res) { let total = 0; - for await (const k of db.scanIterator({ MATCH: "balance:*" })) { - total += parseInt(await db.get(k)); - } - - for await (const k of archive.scanIterator({ MATCH: "balance:*" })) { - total += parseInt(await archive.get(k)); - } + // for await (const k of db.scanIterator({ MATCH: "balance:*" })) { + // total += parseInt(await db.get(k)); + // } + // + // for await (const k of archive.scanIterator({ MATCH: "balance:*" })) { + // total += parseInt(await archive.get(k)); + // } const funds = await ln.listfunds(); const lnchannel = parseInt( @@ -30,7 +30,6 @@ export default { cash, lnchannel, lnwallet, - total, }; res.send(info); |
