diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:31 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:31 +0200 |
commit | 644430921afb7c66720e7fe8ee94848e8b83d751 (patch) | |
tree | d755b4b579582230b8fb0b6c076d349ddcf8e18a /util/src/models/index.ts | |
parent | cleanup rtc (diff) | |
download | server-644430921afb7c66720e7fe8ee94848e8b83d751.tar.xz |
:sparkles: event emit
Diffstat (limited to 'util/src/models/index.ts')
-rw-r--r-- | util/src/models/index.ts | 3 |
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( |