diff --git a/src/models/Guild.ts b/src/models/Guild.ts index aa520329..819ac840 100644 --- a/src/models/Guild.ts +++ b/src/models/Guild.ts @@ -110,7 +110,7 @@ GuildSchema.virtual("roles", { GuildSchema.virtual("members", { ref: MemberModel, localField: "id", - foreignField: "member_id", + foreignField: "guild_id", justOne: false, });