Skip to content

Commit

Permalink
chore: updating return type for korriger sykmelding
Browse files Browse the repository at this point in the history
  • Loading branch information
jaflaten committed Dec 5, 2024
1 parent 27d413a commit d6196d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class NasjonalOppgaveController(
@RequestHeader("Authorization") authorization: String,
@RequestHeader("X-Nav-Enhet") navEnhet: String,
@RequestBody papirSykmelding: SmRegistreringManuell,
): ResponseEntity<String> {
): ResponseEntity<Any> {
log.info("papirsykmelding: Korrrigerer sykmelding med id $sykmeldingId gjennom syk-dig proxy")
val res = smregistreringClient.postKorrigerSykmeldingRequest(authorization, sykmeldingId, navEnhet, papirSykmelding)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class SmregistreringClient(
sykmeldingId: String,
navEnhet: String,
papirSykmelding: SmRegistreringManuell,
): ResponseEntity<String> {
): ResponseEntity<Any> {
val headers = HttpHeaders()
headers.set("X-Nav-Enhet", navEnhet)
headers.contentType = MediaType.APPLICATION_JSON
Expand All @@ -192,7 +192,7 @@ class SmregistreringClient(
uri,
HttpMethod.POST,
HttpEntity(papirSykmelding, headers),
String::class.java,
Any::class.java,
)
log.info("Korrigering av sykmelding $sykmeldingId fikk følgende responskode ${res.statusCode}")
return res
Expand Down

0 comments on commit d6196d2

Please sign in to comment.