Skip to content

Commit

Permalink
Update ordering cloud service assessment results (#410)
Browse files Browse the repository at this point in the history
* Change ordering CoudService ListAssessmentResults
  • Loading branch information
anatheka authored May 2, 2023
1 parent cbf5aba commit caf8ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function listAssessmentResults(): Promise<AssessmentResult[]> {
* @returns an array of {@link AssessmentResult}s.
*/
export async function listCloudServiceAssessmentResults(serviceId: string, fetch = window.fetch): Promise<AssessmentResult[]> {
const apiUrl = clouditorize(`/v1/orchestrator/assessment_results?pageSize=1000&filter.cloudServiceId=${serviceId}&orderBy=id&asc=true`);
const apiUrl = clouditorize(`/v1/orchestrator/assessment_results?pageSize=1000&filter.cloudServiceId=${serviceId}&orderBy=timestamp&asc=false`);

return fetch(apiUrl, {
method: 'GET',
Expand Down

0 comments on commit caf8ec7

Please sign in to comment.