diff options
| -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 }); }, |
