summary refs log tree commit diff
path: root/src/util/entities/Member.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-09-02 02:21:42 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-09-02 02:21:42 +1000
commit2f48212e6e6813f90eb13cf8ed79e0ebb3440b31 (patch)
tree792587a7f3dee4ef09973b21460e12d238d9b792 /src/util/entities/Member.ts
parentMerge branch 'master' of github.com:spacebarchat/server (diff)
downloadserver-2f48212e6e6813f90eb13cf8ed79e0ebb3440b31.tar.xz
typeorm inverse relations of guild relations
Diffstat (limited to 'src/util/entities/Member.ts')
-rw-r--r--src/util/entities/Member.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index d305e4f5..0535313e 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -327,6 +327,7 @@ export class Member extends BaseClassWithoutId {
 				id: guild_id,
 			},
 			relations: PublicGuildRelations,
+			relationLoadStrategy: "query",
 		});
 
 		const memberCount = await Member.count({ where: { guild_id } });