Skip to content

Commit 844f5f4

Browse files
author
Mateus Garcia
committed
fix: revert id pipe
1 parent 0e4d0ca commit 844f5f4

File tree

1 file changed

+7
-3
lines changed
  • libs/json-api-nestjs/src/lib/mixin/pipes

1 file changed

+7
-3
lines changed

libs/json-api-nestjs/src/lib/mixin/pipes/index.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BodyInputPatchPipe } from './body-input-patch/body-input-patch.pipe';
1010
import { ParseRelationshipNamePipe } from './parse-relationship-name/parse-relationship-name.pipe';
1111
import { BodyRelationshipPipe } from './body-relationship/body-relationship.pipe';
1212
import { BodyRelationshipPatchPipe } from './body-relationship-patch/body-relationship-patch.pipe';
13-
import { Entity, PipeMixin } from '../../types';
13+
import { ConfigParam, Entity, PipeMixin } from '../../types';
1414
import { nameIt } from '../../helper';
1515
import { 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
}

0 commit comments

Comments
 (0)