Skip to content

Commit

Permalink
Fjern unødvendig klasse
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvinjevoll committed Oct 4, 2024
1 parent 0d1f8f5 commit 64a54cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ProsesserBrevbestillingJobbUtfører(
override fun utfør(input: JobbInput) {
val referanse = BrevbestillingReferanse(UUID.fromString(input.parameter(BESTILLING_REFERANSE_PARAMETER_NAVN)))

prosesserStegService.prosesserBestilling(ProsesserStegService.Kontekst(referanse))
prosesserStegService.prosesserBestilling(referanse)
}

companion object : Jobb {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ class ProsesserStegService(
.med(steg = FerdigSteg, utfall = ProsesseringStatus.FERDIG)
.build()

data class Kontekst(val referanse: BrevbestillingReferanse)
fun prosesserBestilling(referanse: BrevbestillingReferanse) {

fun prosesserBestilling(kontekst: Kontekst) {

val referanse = kontekst.referanse
val bestilling = brevbestillingRepository.hent(referanse)

prosesserTilStop(
Expand Down

0 comments on commit 64a54cd

Please sign in to comment.