Skip to content

Commit

Permalink
Merge 60deb6b into 988e6f7
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wiedemann authored May 25, 2023
2 parents 988e6f7 + 60deb6b commit cfe4ddc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ public HttpResponse<IssuersResponseVO> getIssuersV4(@Nullable Integer pageSize,
}
}

if (issuerEntries.isEmpty()) {
return HttpResponse.ok(new IssuersResponseVO()
.items(List.of())
.total(0)
.pageSize(0)
.self(SELF_REF));
}

return HttpResponse.ok(new IssuersResponseVO()
.items(issuerEntries)
.total((int) trustedIssuerRepository.count())
Expand Down

0 comments on commit cfe4ddc

Please sign in to comment.