File tree 1 file changed +7
-3
lines changed
libs/json-api-nestjs/src/lib/mixin/pipes
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { BodyInputPatchPipe } from './body-input-patch/body-input-patch.pipe';
10
10
import { ParseRelationshipNamePipe } from './parse-relationship-name/parse-relationship-name.pipe' ;
11
11
import { BodyRelationshipPipe } from './body-relationship/body-relationship.pipe' ;
12
12
import { BodyRelationshipPatchPipe } from './body-relationship-patch/body-relationship-patch.pipe' ;
13
- import { Entity , PipeMixin } from '../../types' ;
13
+ import { ConfigParam , Entity , PipeMixin } from '../../types' ;
14
14
import { nameIt } from '../../helper' ;
15
15
import { IdSchemaPipe } from './query-schema/id-schema.pipe' ;
16
16
@@ -96,6 +96,10 @@ export function bodyRelationshipPatchPipeMixin(): PipeMixin {
96
96
return BodyRelationshipPatchPipe ;
97
97
}
98
98
99
- export function idPipeMixin ( entity : Entity , connectionName : string ) : PipeMixin {
100
- return factoryMixin ( entity , connectionName , IdSchemaPipe ) ;
99
+ export function idPipeMixin (
100
+ entity : Entity ,
101
+ connectionName : string ,
102
+ config : ConfigParam
103
+ ) : PipeMixin {
104
+ return config . pipeForId ;
101
105
}
You can’t perform that action at this time.
0 commit comments