diff --git a/src/main/kotlin/no/nav/syfo/application/BlockingApplicationRunner.kt b/src/main/kotlin/no/nav/syfo/application/BlockingApplicationRunner.kt index e8c63c18..3f38c802 100644 --- a/src/main/kotlin/no/nav/syfo/application/BlockingApplicationRunner.kt +++ b/src/main/kotlin/no/nav/syfo/application/BlockingApplicationRunner.kt @@ -644,7 +644,7 @@ class BlockingApplicationRunner( } else if (behandlerfnr != null) { norskHelsenettClient.getByFnr(behandlerfnr, loggingMeta) } else if (organisationBehandlerHpr != null) { - norskHelsenettClient.getByFnr(organisationBehandlerHpr, loggingMeta) + norskHelsenettClient.getByHpr(organisationBehandlerHpr, loggingMeta) } else { null }