Skip to content

Commit

Permalink
Oppdatert feilhåndtering på aktiver bruker #deploy-test-dolly-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Aug 3, 2023
1 parent eaea31d commit 1a34cb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ private Mono<String> getBrukerStatus(ArenaNyeBrukereResponse response) {
Flux.fromIterable(response.getNyBrukerFeilList())
.map(brukerFeil ->
encodeStatus(String.format(ArenaUtils.STATUS_FMT, brukerFeil.getNyBrukerFeilstatus(), brukerFeil.getMelding())))
.map(decoded -> {
if (decoded.contains("404 Not Found")) {
return "404 Not Found";
} else {
return decoded;
}
})
.collect(Collectors.joining()))

.collect(Collectors.joining());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@Configuration(enforceUniqueMethods = false)
@EnableCaching
@SuppressWarnings("java:S3740")
public class CachingConfig {

public static final String CACHE_BESTILLING = "bestilling";
Expand Down

0 comments on commit 1a34cb8

Please sign in to comment.