From a91467540dfcd6e8574b32070bf73a1000116185 Mon Sep 17 00:00:00 2001 From: manelcecs Date: Tue, 5 Dec 2023 10:57:27 +0100 Subject: [PATCH] Temp: merge w 0d3b751f9a2ba9349070bb9ac0fc2ea5b242b9e0 --- src/domain-services/flows/graphql/args.ts | 12 ++++++------ tests/unit/flow-search-service.spec.ts | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) 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);