From 9f83236bb7373f405da3686fa6c4d3b891a02ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn-Are=20Flaten?= Date: Mon, 18 Sep 2023 07:25:41 +0200 Subject: [PATCH] tatt i bruk hendelsestype variabel i felt som kalla samme metode --- src/main/kotlin/no/nav/syfo/service/BehandlingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/syfo/service/BehandlingService.kt b/src/main/kotlin/no/nav/syfo/service/BehandlingService.kt index 0d497ddf..361dc612 100644 --- a/src/main/kotlin/no/nav/syfo/service/BehandlingService.kt +++ b/src/main/kotlin/no/nav/syfo/service/BehandlingService.kt @@ -52,7 +52,7 @@ class BehandlingService( fields(loggingMeta), ) - if (journalfoeringEvent.hendelsesType.toString() == "TemaEndret") { + if (hendelsesType == "TemaEndret") { ENDRET_PAPIRSM_MOTTATT.inc() log.info("Mottatt endret journalpost {}", fields(loggingMeta)) }