From 3b6038b672b72aa6efe77bf6f88e48b7c9d0b172 Mon Sep 17 00:00:00 2001 From: notsapinho <52896767+notsapinho@users.noreply.github.com> Date: Wed, 7 Apr 2021 14:45:54 -0300 Subject: [PATCH] Update Guild.ts --- src/models/Guild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Guild.ts b/src/models/Guild.ts index d3f098ea..1709db5f 100644 --- a/src/models/Guild.ts +++ b/src/models/Guild.ts @@ -108,7 +108,7 @@ GuildSchema.virtual("roles", { GuildSchema.virtual("members", { ref: MemberModel, localField: "id", - foreignField: "member_id", + foreignField: "guild_id", justOne: false, });