From 92fcdc2a0b520e09fc544fe49d3991260fc30297 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 23 Apr 2021 22:32:25 +0200 Subject: [PATCH] :bug: fix member model --- package.json | 2 +- src/models/Member.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/package.json b/package.json index 5a993a80..04dc0460 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fosscord/server-util", - "version": "1.0.4", + "version": "1.0.5", "description": "Utility functions for the all server repositories", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/models/Member.ts b/src/models/Member.ts index 1a775629..52151235 100644 --- a/src/models/Member.ts +++ b/src/models/Member.ts @@ -97,14 +97,6 @@ MemberSchema.virtual("user", { }, }); -MemberSchema.virtual("roles", { - ref: UserModel, - localField: "id", - foreignField: "id", - justOne: true, - autopopulate: true, -}); - // @ts-ignore export const MemberModel = db.model("Member", MemberSchema, "members");