Skip to content

Commit

Permalink
🐛 Fjern unødvendig transaksjon
Browse files Browse the repository at this point in the history
Co-authored-by: Øydis Kind Refsum <[email protected]>
  • Loading branch information
chsko and oydisrefsum committed Oct 21, 2024
1 parent bade92c commit f0bed57
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,11 @@ class TotrinnsvurderingDao(private val dataSource: DataSource) : Totrinnsvurderi

override fun hentAktiv(vedtaksperiodeId: UUID): TotrinnsvurderingOld? =
sessionOf(dataSource).use { session ->
session.transaction {
TransactionalTotrinnsvurderingDao(session).hentAktiv(vedtaksperiodeId)
}
TransactionalTotrinnsvurderingDao(session).hentAktiv(vedtaksperiodeId)
}

override fun hentAktiv(oppgaveId: Long): TotrinnsvurderingOld? =
sessionOf(dataSource).use { session ->
session.transaction {
TransactionalTotrinnsvurderingDao(session).hentAktiv(oppgaveId)
}
TransactionalTotrinnsvurderingDao(session).hentAktiv(oppgaveId)
}
}

0 comments on commit f0bed57

Please sign in to comment.