Skip to content

Commit

Permalink
Hadde snudd logikken her
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassonav committed Nov 13, 2024
1 parent e93db30 commit 056290c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AktivitetspliktAktivitetsgradDao(
oppgaveId: UUID? = null,
behandlingId: UUID? = null,
) = connectionAutoclosing.hentConnection {
checkInternFeil(oppgaveId == null && behandlingId == null) {
checkInternFeil(oppgaveId != null || behandlingId != null) {
"Kan ikke opprette aktivitetsgrad som ikke er koblet på en behandling eller oppgave. $sakId"
}

Expand Down

0 comments on commit 056290c

Please sign in to comment.