diff --git a/src/domain-services/flows/graphql/args.ts b/src/domain-services/flows/graphql/args.ts index 1c922c6d..fab20a24 100644 --- a/src/domain-services/flows/graphql/args.ts +++ b/src/domain-services/flows/graphql/args.ts @@ -19,14 +19,14 @@ export class SearchFlowsFilters { @Field({ nullable: true }) amountUSD: number; - @Field({ nullable: true }) - reporterRefCode: number; + @Field({ name: 'reporterRefCode', nullable: true }) + reporterReferenceCode: number; - @Field({ nullable: true }) - sourceSystemID: number; + @Field({ name: 'sourceSystemID', nullable: true }) + sourceSystemId: number; - @Field({ nullable: true }) - legacyID: number; + @Field({ name: 'legacyID', nullable: true }) + legacyId: number; } @InputType() diff --git a/tests/unit/flow-search-service.spec.ts b/tests/unit/flow-search-service.spec.ts index 305a2d2b..a12e1fa6 100644 --- a/tests/unit/flow-search-service.spec.ts +++ b/tests/unit/flow-search-service.spec.ts @@ -20,9 +20,9 @@ describe('FlowSearchService', () => { flowFilters.status = 'commitment'; flowFilters.type = 'carryover'; flowFilters.amountUSD = 1000; - flowFilters.reporterRefCode = 123; - flowFilters.sourceSystemID = 456; - flowFilters.legacyID = 789; + flowFilters.reporterReferenceCode = 123; + flowFilters.sourceSystemId = 456; + flowFilters.legacyId = 789; const result = flowSearchService.prepareFlowConditions(flowFilters);