File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
libs/json-api-nestjs/src/lib/mixin/pipes Expand file tree Collapse file tree 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';
1010import { ParseRelationshipNamePipe } from './parse-relationship-name/parse-relationship-name.pipe' ;
1111import { BodyRelationshipPipe } from './body-relationship/body-relationship.pipe' ;
1212import { BodyRelationshipPatchPipe } from './body-relationship-patch/body-relationship-patch.pipe' ;
13- import { Entity , PipeMixin } from '../../types' ;
13+ import { ConfigParam , Entity , PipeMixin } from '../../types' ;
1414import { nameIt } from '../../helper' ;
1515import { IdSchemaPipe } from './query-schema/id-schema.pipe' ;
1616
@@ -96,6 +96,10 @@ export function bodyRelationshipPatchPipeMixin(): PipeMixin {
9696 return BodyRelationshipPatchPipe ;
9797}
9898
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 ;
101105}
You can’t perform that action at this time.
0 commit comments