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 /util/src/entities/Member.ts | |
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 'util/src/entities/Member.ts')
-rw-r--r-- | util/src/entities/Member.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index fe2d5590..0194c9a9 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 }), ]); |