diff options
| author | Adam Soltys <[email protected]> | 2023-01-17 12:33:17 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-17 12:33:17 -0800 |
| commit | 4b51fb8325acafac4e9231754dc58663f6431e1e (patch) | |
| tree | 20614504eb55d4620048c1875e26ccd1e4794a06 /lib/sockets.js | |
| parent | 31823676432b637f2cd8314ca0e1ce890219b9b4 (diff) | |
| download | coinos-server-4b51fb8325acafac4e9231754dc58663f6431e1e.tar.gz coinos-server-4b51fb8325acafac4e9231754dc58663f6431e1e.zip | |
rename app
Diffstat (limited to 'lib/sockets.js')
| -rw-r--r-- | lib/sockets.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/sockets.js b/lib/sockets.js index 1105f94d..234c647a 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -1,4 +1,3 @@ -import app from "$app"; import config from "$config"; import store from "$lib/store"; import jwt from "jsonwebtoken"; @@ -83,7 +82,6 @@ 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] = {}; |
