diff options
| author | Adam Soltys <[email protected]> | 2024-09-26 23:04:09 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-01 04:21:52 +0000 |
| commit | b0b0d2356e76c376c980a08493a6b28b9eeeec0a (patch) | |
| tree | 6a80d4f3aa290c8e33e649815d85d95ad14dd949 | |
| parent | 3322c0df9580411386693dfb319f6d591abb1b16 (diff) | |
| download | coinos-server-b0b0d2356e76c376c980a08493a6b28b9eeeec0a.tar.gz coinos-server-b0b0d2356e76c376c980a08493a6b28b9eeeec0a.zip | |
nwc
| -rw-r--r-- | lib/nwc.ts | 3 | ||||
| -rw-r--r-- | routes/locations.ts | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -114,7 +114,8 @@ let handle = (method, params, user) => }, async get_balance() { - let balance = await g(`balance:${user.id}`) * 1000; + let balance = await g(`balance:${user.id}`); + balance *= 1000; return result({ balance }); }, diff --git a/routes/locations.ts b/routes/locations.ts index e9a6843c..5aaeb02b 100644 --- a/routes/locations.ts +++ b/routes/locations.ts @@ -1,7 +1,7 @@ import { g } from "$lib/db"; export default { - async list(req, res) { + async list(_, res) { let locations = await g("locations"); res.send({ locations }); }, |
