diff --git a/public/services/FindingsService.ts b/public/services/FindingsService.ts index 1bbb2a1ed..b22c8e6fd 100644 --- a/public/services/FindingsService.ts +++ b/public/services/FindingsService.ts @@ -19,7 +19,7 @@ export default class FindingsService { detectorParams: GetFindingsParams ): Promise> => { const findingIds = detectorParams.findingIds - ? JSON.stringify(detectorParams.findingIds) + ? detectorsParams.findingIds.join(',') : undefined; const query: GetFindingsParams | {} = { sortOrder: 'desc', diff --git a/server/routes/FindingsRoutes.ts b/server/routes/FindingsRoutes.ts index 89a1c4da9..ea7636eda 100644 --- a/server/routes/FindingsRoutes.ts +++ b/server/routes/FindingsRoutes.ts @@ -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()), }), }, },