From 53f18b6a064d5db1af609e595a5c1afad208d33d Mon Sep 17 00:00:00 2001 From: C4tWithShell Date: Wed, 25 Oct 2023 23:36:45 +0300 Subject: [PATCH] Fix ListAction --- .../server/pullrequest/ws/pullrequest/action/ListAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/pullrequest/action/ListAction.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/pullrequest/action/ListAction.java index 9530955..ac2c107 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/pullrequest/action/ListAction.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/pullrequest/ws/pullrequest/action/ListAction.java @@ -96,7 +96,7 @@ public void handleProjectRequest(ProjectDto project, Request request, Response r .selectByComponentUuidsAndMetricKeys(dbSession, pullRequestUuids, List.of(CoreMetrics.ALERT_STATUS_KEY)).stream() .collect(CommunityMoreCollectors.uniqueIndex(LiveMeasureDto::getComponentUuid)); Map analysisDateByBranchUuid = getDbClient().snapshotDao().selectLastAnalysesByRootComponentUuids(dbSession, pullRequestUuids).stream() - .collect(CommunityMoreCollectors.uniqueIndex(SnapshotDto::getComponentUuid, s -> DateUtils.formatDateTime(s.getCreatedAt()))); + .collect(CommunityMoreCollectors.uniqueIndex(SnapshotDto::getUuid, s -> DateUtils.formatDateTime(s.getCreatedAt()))); ProjectPullRequests.ListWsResponse.Builder protobufResponse = ProjectPullRequests.ListWsResponse.newBuilder(); pullRequests