Skip to content

Commit

Permalink
Feilretting #deploy-test-dolly-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Aug 21, 2023
1 parent 6a14f88 commit 79e25bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public PersonServiceConsumer(
}

@Timed(name = "providers", tags = {"operation", "personService_isPerson"})
public Mono<PersonServiceResponse> isPerson(String ident, Set<String> hendelseId) {
public Mono<PersonServiceResponse> isPerson(String ident, Set<String> opplysningId) {

return tokenService.exchange(serviceProperties)
.flatMap(token -> new PersonServiceExistCommand(webClient, ident, hendelseId, token.getTokenValue()).call());
.flatMap(token -> new PersonServiceExistCommand(webClient, ident, opplysningId, token.getTokenValue()).call());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PersonServiceExistCommand implements Callable<Mono<PersonServiceRes

private final WebClient webClient;
private final String ident;
private final Set<String> hendelseId;
private final Set<String> opplysningId;
private final String token;

private static final String PERSON_URL = "/api/v1/personer/{ident}/exists";
Expand All @@ -32,7 +32,7 @@ public Mono<PersonServiceResponse> call() {

return webClient.get()
.uri(uriBuilder -> uriBuilder.path(PERSON_URL)
.queryParamIfPresent("hendelseId", Optional.ofNullable(hendelseId.isEmpty() ? null : hendelseId))
.queryParamIfPresent("opplysningId", Optional.ofNullable(opplysningId.isEmpty() ? null : opplysningId))
.build(ident))
.header(HttpHeaders.AUTHORIZATION, "Bearer " + token)
.header(UserConstant.USER_HEADER_JWT, getUserJwt())
Expand Down

0 comments on commit 79e25bc

Please sign in to comment.