From dcdce12289bae5efe71085dc3d92b499eb5a909f Mon Sep 17 00:00:00 2001 From: Helene Arnesen <86235924+helehar@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:15:07 +0100 Subject: [PATCH] chore: sendTilGosys with m2m token, not obo token (#376) --- .../digitalisering/ferdigstilling/oppgave/OppgaveClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/sykdig/digitalisering/ferdigstilling/oppgave/OppgaveClient.kt b/src/main/kotlin/no/nav/sykdig/digitalisering/ferdigstilling/oppgave/OppgaveClient.kt index fee2d00b..597820d5 100644 --- a/src/main/kotlin/no/nav/sykdig/digitalisering/ferdigstilling/oppgave/OppgaveClient.kt +++ b/src/main/kotlin/no/nav/sykdig/digitalisering/ferdigstilling/oppgave/OppgaveClient.kt @@ -445,7 +445,7 @@ class OppgaveClient( ) try { - oppgaveRestTemplate.exchange( + oppgaveM2mRestTemplate.exchange( "$url/$oppgaveId", HttpMethod.PATCH, HttpEntity(body, headers),