File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { AbstractSchema } from '~/_common/abstracts/schemas/abstract.schema';
33import { StatePart , StatePartSchema } from '~/core/agents/_schemas/_parts/state.part.schema' ;
44import { SecurityPart , SecurityPartSchema } from '~/core/agents/_schemas/_parts/security.part.schema' ;
55import { MixedValue } from '~/_common/types/mixed-value.type' ;
6+ import { historyPlugin } from '~/_common/plugins/mongoose/history.plugin' ;
67
78const DEFAULT_THIRD_PARTY_AUTH = 'local' ;
89
@@ -70,4 +71,10 @@ export class Agents extends AbstractSchema {
7071 public customFields ?: { [ key : string ] : MixedValue } ;
7172}
7273
73- export const AgentsSchema = SchemaFactory . createForClass ( Agents ) ;
74+ export const AgentsSchema = SchemaFactory . createForClass ( Agents )
75+ . plugin ( historyPlugin , {
76+ collectionName : Agents . name ,
77+ ignoredFields : [
78+ 'password' ,
79+ ] ,
80+ } ) ;
You can’t perform that action at this time.
0 commit comments