Skip to content

Commit

Permalink
Temp: fix validation error. Merge with: 2bfa08c
Browse files Browse the repository at this point in the history
  • Loading branch information
manelcecs committed Jan 22, 2024
1 parent 95988e6 commit 2ea19b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/domain-services/flows/graphql/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@ export class SearchFlowsFilters {

@Field(() => Boolean, { nullable: true })
restricted: boolean | null;

constructor() {}
}

@InputType()
export class NestedFlowFilters {
@Field(() => String, { name: 'reporterRefCode', nullable: true })
@Field(() => [String], { nullable: true })
reporterReferenceCodes: string[] | null;

@Field(() => Number, { name: 'sourceSystemID', nullable: true })
@Field(() => [String], { nullable: true })
sourceIDs: string[] | null;

@Field(() => Number, { name: 'legacyID', nullable: true })
legacyId: number[] | null;

constructor() {}
@Field(() => [Number], { nullable: true })
legacyIDs: number[] | null;
}

@InputType()
Expand Down
2 changes: 2 additions & 0 deletions src/domain-services/report-details/report-detail-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class ReportDetailService {
[Op.IN]: reporterReferenceCodes,
},
},
skipValidation: true,
});

const flowIDs: UniqueFlowEntity[] = [];
Expand All @@ -117,6 +118,7 @@ export class ReportDetailService {
[Op.IN]: sourceIDs,
},
},
skipValidation: true,
});

const flowIDs: UniqueFlowEntity[] = [];
Expand Down

0 comments on commit 2ea19b3

Please sign in to comment.