From 015a6ec42f78802f34b46ecf66a213768427b6b7 Mon Sep 17 00:00:00 2001 From: Xavier FACQ Date: Wed, 8 Nov 2023 15:17:40 +0100 Subject: [PATCH] Ensure no duplicate is returned --- .../net/adoptium/api/v3/routes/info/ReleaseListResource.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info/ReleaseListResource.kt b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info/ReleaseListResource.kt index f1426036b..70a273a66 100644 --- a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info/ReleaseListResource.kt +++ b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info/ReleaseListResource.kt @@ -151,6 +151,7 @@ constructor( semver ) .map { it.release_name } + .distinct() val pagedReleases = getPage(pageSize, page, releases, showPageCount ?: false)