Skip to content

Commit

Permalink
Fjerne ubrukte db-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
s148719 committed Dec 14, 2023
1 parent cbce888 commit 10743e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import no.nav.bidrag.behandling.consumer.BidragGrunnlagConsumer
import no.nav.bidrag.behandling.database.datamodell.Behandling
import no.nav.bidrag.behandling.database.datamodell.ForskuddAarsakType
import no.nav.bidrag.behandling.database.repository.BehandlingRepository
import no.nav.bidrag.behandling.database.repository.HusstandsbarnRepository
import no.nav.bidrag.behandling.database.repository.RolleRepository
import no.nav.bidrag.behandling.database.repository.SivilstandRepository
import no.nav.bidrag.behandling.dto.behandling.CreateRolleDto
import no.nav.bidrag.behandling.dto.behandling.SivilstandDto
import no.nav.bidrag.behandling.dto.forsendelse.BehandlingInfoDto
Expand All @@ -35,8 +33,6 @@ private val log = KotlinLogging.logger {}
@Service
class BehandlingService(
private val behandlingRepository: BehandlingRepository,
private val husstandsbarnRepository: HusstandsbarnRepository,
private val sivilstandRepository: SivilstandRepository,
private val bidragGrunnlagConsumer: BidragGrunnlagConsumer,
private val rolleRepository: RolleRepository,
private val forsendelseService: ForsendelseService,
Expand Down Expand Up @@ -179,15 +175,11 @@ class BehandlingService(
behandling.boforholdsbegrunnelseKunINotat = boforholdsbegrunnelseKunINotat
behandling.boforholdsbegrunnelseIVedtakOgNotat = boforholdsbegrunnelseMedIVedtakOgNotat

// husstandsbarnRepository.deleteByBehandlingId(behandlingsid)
behandling.husstandsbarn.clear()
behandling.husstandsbarn.addAll(husstandsbarn.toDomain(behandling))
// husstandsbarn.toDomain(behandling).forEach { husstandsbarnRepository.save(it) }

// sivilstandRepository.deleteByBehandlingId(behandlingsid)
behandling.sivilstand.clear()
behandling.sivilstand.addAll(sivilstand.toSivilstandDomain(behandling))
// sivilstand.toSivilstandDomain(behandling).forEach { sivilstandRepository.save(it) }

behandlingRepository.save(behandling)
}
Expand Down

0 comments on commit 10743e6

Please sign in to comment.