summary refs log tree commit diff
path: root/util/src/models/index.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:31 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:31 +0200
commit644430921afb7c66720e7fe8ee94848e8b83d751 (patch)
treed755b4b579582230b8fb0b6c076d349ddcf8e18a /util/src/models/index.ts
parentcleanup rtc (diff)
downloadserver-644430921afb7c66720e7fe8ee94848e8b83d751.tar.xz
:sparkles: event emit
Diffstat (limited to '')
-rw-r--r--util/src/models/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/src/models/index.ts b/util/src/models/index.ts

index d0a46bf9..db74ef40 100644 --- a/util/src/models/index.ts +++ b/util/src/models/index.ts
@@ -12,6 +12,9 @@ type UpdateAggregationStage = type EnforceDocument<T, TMethods> = T extends Document ? T : T & Document & TMethods; declare module "mongoose" { + interface SchemaOptions { + removeResponse?: string[]; + } interface Model<T, TQueryHelpers = {}, TMethods = {}> { // removed null -> always return document -> throw error if it doesn't exist findOne(