Skip to content

Commit

Permalink
bug fix getFindingByIds API (opensearch-project#1051)
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
(cherry picked from commit 4cb6965)
  • Loading branch information
riysaxen-amzn committed Jun 21, 2024
1 parent 72a6201 commit 654b435
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 @@ -19,7 +19,7 @@ export default class FindingsService {
detectorParams: GetFindingsParams
): Promise<ServerResponse<GetFindingsResponse>> => {
const findingIds = detectorParams.findingIds
? JSON.stringify(detectorParams.findingIds)
? detectorsParams.findingIds.join(',')
: undefined;
const query: GetFindingsParams | {} = {
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 @@ -24,7 +24,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()),
}),
},
},
Expand Down

0 comments on commit 654b435

Please sign in to comment.