summary refs log tree commit diff
path: root/src/models/Role.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:26:19 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:26:19 +0200
commita6d82b466f61c1b60b1058d75b0647f2c0ac91a0 (patch)
tree3861fb579509fa3b271edf707ce2f5a0006b3c9c /src/models/Role.ts
parentgetPermission use cache (diff)
downloadserver-a6d82b466f61c1b60b1058d75b0647f2c0ac91a0.tar.xz
:zap: use mongoose autopopulate
Diffstat (limited to 'src/models/Role.ts')
-rw-r--r--src/models/Role.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/Role.ts b/src/models/Role.ts

index adb75b0a..84ad55d0 100644 --- a/src/models/Role.ts +++ b/src/models/Role.ts
@@ -34,6 +34,7 @@ export const RoleSchema = new Schema({ bot_id: String, }, }); +RoleSchema.set("removeResponse", ["guild_id"]); // @ts-ignore export const RoleModel = db.model<RoleDocument>("Role", RoleSchema, "roles");