aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-17 12:30:30 -0800
committerAdam Soltys <[email protected]>2023-01-17 12:30:30 -0800
commit5ae4209579287c571559edcf00dce24754553aaf (patch)
treef897e334e3781345af66b11cd7a2b3b712912354 /lib/sockets.js
parente918a818acf789a6619cbf4432f0c4713d4c53e6 (diff)
downloadcoinos-server-5ae4209579287c571559edcf00dce24754553aaf.tar.gz
coinos-server-5ae4209579287c571559edcf00dce24754553aaf.zip
rename db
Diffstat (limited to 'lib/sockets.js')
-rw-r--r--lib/sockets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index e803d5b0..a7d392a9 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -83,6 +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)
if (!user) throw new Error("User not found");
if (!store.sockets[uid]) store.sockets[uid] = {};