Skip to content

Commit

Permalink
🔥 RIP TransactionalMeldingDao
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Havstein Eriksen <[email protected]>
Co-authored-by: Øydis Kind Refsum <[email protected]>
  • Loading branch information
3 people committed Oct 28, 2024
1 parent baf5a45 commit 9de227f
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 306 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import no.nav.helse.db.PgOppgaveDao
import no.nav.helse.db.PgTotrinnsvurderingDao
import no.nav.helse.db.ReservasjonDao
import no.nav.helse.db.TildelingDao
import no.nav.helse.db.TransactionalMeldingDao
import no.nav.helse.db.TransactionalPeriodehistorikkDao
import no.nav.helse.db.TransactionalUtbetalingDao
import no.nav.helse.db.TransactionalVedtakDao
Expand Down Expand Up @@ -113,7 +112,7 @@ internal class Kommandofabrikk(
val harTildeltOppgave =
TildelingDao(transactionalSession).tildelingForOppgave(oppgaveDataForAutomatisering.oppgaveId) != null
val godkjenningsbehovData =
TransactionalMeldingDao(transactionalSession)
MeldingDao(transactionalSession)
.finnGodkjenningsbehov(oppgaveDataForAutomatisering.hendelseId).data()

return GosysOppgaveEndretCommand(
Expand All @@ -137,7 +136,7 @@ internal class Kommandofabrikk(
transactionalSession: TransactionalSession,
): TilbakedateringGodkjentCommand {
val godkjenningsbehovData =
TransactionalMeldingDao(transactionalSession).finnGodkjenningsbehov(oppgaveDataForAutomatisering.hendelseId).data()
MeldingDao(transactionalSession).finnGodkjenningsbehov(oppgaveDataForAutomatisering.hendelseId).data()
val sykefraværstilfelle = person.sykefraværstilfelle(godkjenningsbehovData.vedtaksperiodeId)
val utbetaling = TransactionalUtbetalingDao(transactionalSession).hentUtbetaling(godkjenningsbehovData.utbetalingId)

Expand Down
Loading

0 comments on commit 9de227f

Please sign in to comment.