Skip to content

Commit

Permalink
Fix: use correct notation for propertyID
Browse files Browse the repository at this point in the history
Rename reporterRefCode
  • Loading branch information
manelcecs committed Dec 4, 2023
1 parent 3c4836f commit 0d3b751
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/domain-services/flows/graphql/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export class SearchFlowsFilters {
amountUSD: number;

@Field({ nullable: true })
reporterReferenceCode: number;
reporterRefCode: number;

@Field({ nullable: true })
sourceSystemId: number;
sourceSystemID: number;

@Field({ nullable: true })
legacyId: number;
legacyID: number;
}

@InputType()
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/flow-search-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ describe('FlowSearchService', () => {
flowFilters.status = 'commitment';
flowFilters.type = 'carryover';
flowFilters.amountUSD = 1000;
flowFilters.reporterReferenceCode = 123;
flowFilters.sourceSystemId = 456;
flowFilters.legacyId = 789;
flowFilters.reporterRefCode = 123;
flowFilters.sourceSystemID = 456;
flowFilters.legacyID = 789;

const result = flowSearchService.prepareFlowConditions(flowFilters);

Expand All @@ -32,7 +32,7 @@ describe('FlowSearchService', () => {
status: 'commitment',
type: 'carryover',
amountUSD: 1000,
reporterReferenceCode: 123,
reporterRefCode: 123,
sourceSystemId: 456,
legacyId: 789,
});
Expand Down

0 comments on commit 0d3b751

Please sign in to comment.