Skip to content

Commit

Permalink
bug fix getFindingByIds API (#1051) (#1052)
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <riysaxen@amazon.com>
(cherry picked from commit 4cb6965)
  • Loading branch information
riysaxen-amzn committed Jun 21, 2024
1 parent 76baf6b commit cf73466
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/services/FindingsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class FindingsService {
getFindingsParams: GetFindingsParams
): Promise<ServerResponse<GetFindingsResponse>> => {
const findingIds = getFindingsParams.findingIds
? JSON.stringify(getFindingsParams.findingIds)
? getFindingsParams.findingIds.join(',')
: undefined;
const query = {
sortOrder: 'desc',
Expand Down
2 changes: 1 addition & 1 deletion server/routes/FindingsRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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 cf73466

Please sign in to comment.