1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-14 06:32:36 +01:00

Merge pull request #3 from notsapinho/patch-1

🖊️ fix members virtual
This commit is contained in:
Flam3rboy 2021-04-07 19:48:58 +02:00 committed by GitHub
commit bb2ffb24a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ GuildSchema.virtual("roles", {
GuildSchema.virtual("members", { GuildSchema.virtual("members", {
ref: MemberModel, ref: MemberModel,
localField: "id", localField: "id",
foreignField: "member_id", foreignField: "guild_id",
justOne: false, justOne: false,
}); });