Skip to content

Commit

Permalink
manual backport for bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Jun 21, 2024
1 parent 9ca8d9b commit 7adf197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/services/FindingsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default class FindingsService {
getFindings = async (
detectorParams: GetFindingsParams
): Promise<ServerResponse<GetFindingsResponse>> => {
const findingIds = detectorParams.findingIds
? JSON.stringify(detectorParams.findingIds)
const findingIds = getFindingsParams.findingIds
? getFindingsParams.findingIds.join(',')
: undefined;
const query = {
sortOrder: 'desc',
Expand Down
4 changes: 3 additions & 1 deletion server/routes/FindingsRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function setupFindingsRoutes(services: NodeServices, router: IRouter) {
detectionType: schema.maybe(schema.string()),
severity: schema.maybe(schema.string()),
searchString: schema.maybe(schema.string()),
findingIds: schema.maybe(schema.arrayOf(schema.string())),
findingIds: schema.maybe(schema.string()),
startTime: schema.maybe(schema.number()),
endTime: schema.maybe(schema.number())
}),
},
},
Expand Down

0 comments on commit 7adf197

Please sign in to comment.