Skip to content

Commit

Permalink
Legger på manglende inTransaction (#6697)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindsh authored Jan 2, 2025
1 parent bfbf737 commit aa6a883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/etterlatte-behandling/src/main/kotlin/sak/SakRoutes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ internal fun Route.sakSystemRoutes(
"${call.parameters[PLEIEFORHOLDET_OPPHOERTE_PARAMETER]}",
)
}
call.respond(sakService.hentSakerMedPleieforholdetOpphoerte(maanedOpphoerte))
val opphoerte = inTransaction { sakService.hentSakerMedPleieforholdetOpphoerte(maanedOpphoerte) }
call.respond(opphoerte)
}
}

Expand Down

0 comments on commit aa6a883

Please sign in to comment.