diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-07-18 18:46:45 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | 1bb16b76ac61c20c09b60e6641c2c292e5be4c81 (patch) | |
tree | 5e10b95f119b70759753f64044d5b589e3d0b024 /gateway | |
parent | replace all var with let (reduces warnings) (diff) | |
download | server-1bb16b76ac61c20c09b60e6641c2c292e5be4c81.tar.xz |
Update local state, fix a few more errors
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/package.json | 2 | ||||
-rw-r--r-- | gateway/src/opcodes/Identify.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gateway/package.json b/gateway/package.json index 0524cc40..a062ac9b 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -34,7 +34,7 @@ "missing-native-js-functions": "^1.2.18", "node-fetch": "^2.6.2", "proxy-agent": "^5.0.0", - "typeorm": "^0.2.37", + "typeorm": "^0.2.45", "ws": "^7.4.2" }, "optionalDependencies": { diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index 31d2ae33..2559624e 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -41,7 +41,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { try { const { jwtSecret } = Config.get().security; - let { decoded } = await checkToken(identify.token, jwtSecret); // will throw an error if invalid + var { decoded } = await checkToken(identify.token, jwtSecret); // will throw an error if invalid } catch (error) { console.error("invalid token", error); return this.close(CLOSECODES.Authentication_failed); |