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:
parent
51dfeca70d
commit
92fcdc2a0b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fosscord/server-util",
|
"name": "@fosscord/server-util",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "Utility functions for the all server repositories",
|
"description": "Utility functions for the all server repositories",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -97,14 +97,6 @@ MemberSchema.virtual("user", {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
MemberSchema.virtual("roles", {
|
|
||||||
ref: UserModel,
|
|
||||||
localField: "id",
|
|
||||||
foreignField: "id",
|
|
||||||
justOne: true,
|
|
||||||
autopopulate: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export const MemberModel = db.model<MemberDocument>("Member", MemberSchema, "members");
|
export const MemberModel = db.model<MemberDocument>("Member", MemberSchema, "members");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user