Skip to content

Commit

Permalink
chore: returning string in korriger sm
Browse files Browse the repository at this point in the history
  • Loading branch information
jaflaten committed Dec 6, 2024
1 parent d6196d2 commit 9d06d15
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 @@ -169,7 +169,7 @@ class NasjonalOppgaveController(
@RequestHeader("Authorization") authorization: String,
@RequestHeader("X-Nav-Enhet") navEnhet: String,
@RequestBody papirSykmelding: SmRegistreringManuell,
): ResponseEntity<Any> {
): ResponseEntity<String> {
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<Any> {
): ResponseEntity<String> {
val headers = HttpHeaders()
headers.set("X-Nav-Enhet", navEnhet)
headers.contentType = MediaType.APPLICATION_JSON
Expand All @@ -192,9 +192,9 @@ class SmregistreringClient(
uri,
HttpMethod.POST,
HttpEntity(papirSykmelding, headers),
Any::class.java,
String::class.java,
)
log.info("Korrigering av sykmelding $sykmeldingId fikk følgende responskode ${res.statusCode}")
log.info("Korrigering av sykmelding $sykmeldingId fikk følgende responskode ${res.statusCode} der body er ${res.body}")
return res
}

Expand Down

0 comments on commit 9d06d15

Please sign in to comment.