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

🐛 fix member model

This commit is contained in:
Flam3rboy 2021-04-23 22:32:25 +02:00
parent 51dfeca70d
commit 92fcdc2a0b
2 changed files with 1 additions and 9 deletions

View File

@ -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",

View File

@ -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<MemberDocument>("Member", MemberSchema, "members");