aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-26 23:04:09 +0000
committerAdam Soltys <[email protected]>2024-10-01 04:21:52 +0000
commitb0b0d2356e76c376c980a08493a6b28b9eeeec0a (patch)
tree6a80d4f3aa290c8e33e649815d85d95ad14dd949
parent3322c0df9580411386693dfb319f6d591abb1b16 (diff)
downloadcoinos-server-b0b0d2356e76c376c980a08493a6b28b9eeeec0a.tar.gz
coinos-server-b0b0d2356e76c376c980a08493a6b28b9eeeec0a.zip
nwc
-rw-r--r--lib/nwc.ts3
-rw-r--r--routes/locations.ts2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index 4ea4e8a8..973d7263 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -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 });
},