diff options
| author | Adam Soltys <[email protected]> | 2024-10-31 09:29:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-31 09:34:42 -0700 |
| commit | aa4cd39c943b67169def224e224bd07b815b70ec (patch) | |
| tree | 2af857ac971705f4d20eb017864f0365d0b57ea6 /routes/info.ts | |
| parent | bc9c04f6519f32d3b444d4df0b276eba960480a9 (diff) | |
| download | coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip | |
biome lint
Diffstat (limited to 'routes/info.ts')
| -rw-r--r-- | routes/info.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/info.ts b/routes/info.ts index f2e262f6..09361a01 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -9,11 +9,11 @@ export default { let total = 0; - for await (let k of db.scanIterator({ MATCH: "balance:*" })) { + for await (const k of db.scanIterator({ MATCH: "balance:*" })) { total += parseInt(await db.get(k)); } - for await (let k of archive.scanIterator({ MATCH: "balance:*" })) { + for await (const k of archive.scanIterator({ MATCH: "balance:*" })) { total += parseInt(await archive.get(k)); } |
