diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 12:42:01 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 12:42:01 +1000 |
commit | 14b0c86bcd56201c4ff24607d5cad09628548b6e (patch) | |
tree | a4326f4d99fcc628cf90553ed446b93919e58d82 /src/util/entities/Member.ts | |
parent | Refactor to mono-repo + upgrade packages (diff) | |
download | server-14b0c86bcd56201c4ff24607d5cad09628548b6e.tar.xz |
'Fix' distinct alias typeorm issue
Diffstat (limited to 'src/util/entities/Member.ts')
-rw-r--r-- | src/util/entities/Member.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index d7bcefea..7d1346ba 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -165,7 +165,6 @@ export class Member extends BaseClassWithoutId { static async addRole(user_id: string, guild_id: string, role_id: string) { const [member, role] = await Promise.all([ - // @ts-ignore Member.findOneOrFail({ where: { id: user_id, guild_id }, relations: ["user", "roles"], // we don't want to load the role objects just the ids @@ -192,7 +191,6 @@ export class Member extends BaseClassWithoutId { static async removeRole(user_id: string, guild_id: string, role_id: string) { const [member] = await Promise.all([ - // @ts-ignore Member.findOneOrFail({ where: { id: user_id, guild_id }, relations: ["user", "roles"], // we don't want to load the role objects just the ids |