Skip to content

Commit

Permalink
Endret enkoding III #deploy-tenor-search-service
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Jan 12, 2024
1 parent 25f9230 commit 4180805
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.testnav.apps.tenorsearchservice.consumers;

import com.fasterxml.jackson.databind.JsonNode;
import no.nav.testnav.apps.tenorsearchservice.config.Consumers;
import no.nav.testnav.apps.tenorsearchservice.consumers.command.GetTenorTestdata;
import no.nav.testnav.apps.tenorsearchservice.domain.TenorResponse;
Expand All @@ -26,6 +25,9 @@ public TenorClient(Consumers consumers, MaskinportenClient maskinportenClient) {
public Mono<TenorResponse> getTestdata(String query) {

return maskinportenClient.getAccessToken()
.flatMap(token -> new GetTenorTestdata(webClient, query, token.value()).call());
.flatMap(token -> new GetTenorTestdata(webClient,
query.replace("{", "%7b")
.replace("}", "%7d"),
token.value()).call());
}
}

0 comments on commit 4180805

Please sign in to comment.