aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rates.js2
-rw-r--r--lib/sockets.js2
-rw-r--r--lib/utils.js3
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/rates.js b/lib/rates.js
index 7cc24e6b..45c5977a 100644
--- a/lib/rates.js
+++ b/lib/rates.js
@@ -21,7 +21,7 @@ let connect = () => {
store.last = msg.c;
} catch (e) {
- console.log(e)
+ console.log(e);
err("binance message error", e.message);
}
};
diff --git a/lib/sockets.js b/lib/sockets.js
index a7d392a9..1105f94d 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -83,7 +83,7 @@ export async function socketServer(app) {
let { id: uid } = jwt.decode(token);
if (!uid) throw new Error("Invalid JWT token");
let user = await g(`user:${uid}`);
- console.log("uid", uid)
+ console.log("uid", uid);
if (!user) throw new Error("User not found");
if (!store.sockets[uid]) store.sockets[uid] = {};
diff --git a/lib/utils.js b/lib/utils.js
index 8d2648f2..92b34be5 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -26,4 +26,5 @@ export const SATS = 100000000;
export const toSats = n => Math.round(n * SATS);
export const uniq = (a, k) => [...new Map(a.map(x => [k(x), x])).values()];
-export const pick = (O, K) => K.reduce((o, k) => (typeof O[k] !== 'undefined' && (o[k] = O[k]), o), {});
+export const pick = (O, K) =>
+ K.reduce((o, k) => (typeof O[k] !== "undefined" && (o[k] = O[k]), o), {});