Skip to content

Commit

Permalink
IS-1837: Log error for kontor med potensielt feil herId
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Nov 23, 2023
1 parent f71c4e4 commit 03c4ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/behandler/BehandlerService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class BehandlerService(
if (shouldUpdateKontorAdresse(behandler.kontor, existingBehandlerKontor)) {
updateBehandlerKontorAddress(behandler.kontor.partnerId, behandler.kontor)
}
if (behandler.kontor.herId != null && behandler.kontor.herId.toString() != existingBehandlerKontor.herId) {
if (behandler.kontor.herId != null && behandler.kontor.herId.toString().trim() != existingBehandlerKontor.herId) {
log.error("Persistert behandlerkontor har muligens feil herId ${existingBehandlerKontor.herId}: " +
"Sjekk kontor med partnerId ${existingBehandlerKontor.partnerId}." +
"Adresseregisteret returnerte overordnet herId ${behandler.kontor.herId} for behandler ${behandler.behandlerRef}")
Expand Down

0 comments on commit 03c4ad9

Please sign in to comment.