Skip to content

Commit

Permalink
IS-2581: Filtrere bort admin-ansatte
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Aug 9, 2024
1 parent e4242c8 commit e76d7b1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ class VerifyBehandlereForKontorCronjob(
)
added.add(behandlerFraAdresseregisteret)
log.info("VerifyBehandlereForKontorCronjob: added new behandler from Adresseregisteret: $behandlerRef")
} else {
log.warn("VerifyBehandlereForKontorCronjob: could not add new behandler from Adresseregisteret because hprBehandler incomplete")
}
}
}
Expand Down Expand Up @@ -284,7 +282,7 @@ class VerifyBehandlereForKontorCronjob(
existingBehandlereForKontor: List<PBehandler>,
) {
aktiveBehandlereForKontor.filter {
it.hprId != null
it.hprId != null && BehandlerKategori.fromKategoriKode(it.kategori) != null
}.forEach { behandlerFraAdresseregisteret ->
val behandlerFraAdresseregisteretHprId = behandlerFraAdresseregisteret.hprId!!.toString()
val existingBehandlereWithSameHprId = existingBehandlereForKontor.filter {
Expand Down

0 comments on commit e76d7b1

Please sign in to comment.