diff --git a/api/package.json b/api/package.json index b46e5f3d6..b34f1b309 100644 --- a/api/package.json +++ b/api/package.json @@ -93,7 +93,7 @@ "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", "supertest": "^6.1.6", - "typeorm": "^0.2.37" + "typeorm": "^0.2.45" }, "jest": { "setupFiles": [ diff --git a/gateway/package.json b/gateway/package.json index 0524cc400..a062ac9b7 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 31d2ae33a..2559624e0 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); diff --git a/package-lock.json b/package-lock.json index 9aacf440a..11edcc9cb 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/util/package.json b/util/package.json index 587e8a14f..246ec6b68 100644 --- a/util/package.json +++ b/util/package.json @@ -50,7 +50,7 @@ "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", "reflect-metadata": "^0.1.13", - "typeorm": "^0.2.38", + "typeorm": "^0.2.45", "typescript": "^4.4.2", "typescript-json-schema": "^0.50.1" }, diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index fe2d5590a..0194c9a9b 100644 --- a/util/src/entities/Member.ts +++ b/util/src/entities/Member.ts @@ -155,7 +155,7 @@ export class Member extends BaseClassWithoutId { Member.findOneOrFail({ where: { id: user_id, guild_id }, relations: ["user", "roles"], // we don't want to load the role objects just the ids - select: ["index", "roles.id"], + select: ["index"], }), Role.findOneOrFail({ where: { id: role_id, guild_id }, select: ["id"] }), ]); @@ -181,7 +181,7 @@ export class Member extends BaseClassWithoutId { Member.findOneOrFail({ where: { id: user_id, guild_id }, relations: ["user", "roles"], // we don't want to load the role objects just the ids - select: ["roles.id", "index"], + select: ["index"], }), await Role.findOneOrFail({ id: role_id, guild_id }), ]);