Skip to content

Commit

Permalink
rettet etter tilbakemeldinger
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbalevik committed Nov 25, 2024
1 parent de8226c commit a7dc8f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InntektsjusteringSelvbetjeningService(
publiserKlarForOmregning(
sakId,
InntektsjusteringRequest.utledLoependeFom(),
InntektsjusteringRequest.utledKjoering(request.mottattId),
InntektsjusteringRequest.utledKjoering(request.inntektsjusteringId),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BehandlingClient(
fun behandleInntektsjustering(
sakId: SakId,
journalPostId: String,
id: UUID,
inntektsjusteringId: UUID,
) {
runBlocking {
sakOgBehandlingApp
Expand All @@ -66,7 +66,7 @@ class BehandlingClient(
InntektsjusteringRequest(
sak = sakId,
journalpostId = journalPostId,
mottattId = id,
inntektsjusteringId = inntektsjusteringId,
),
)
}.body<InntektsjusteringRequest>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ internal class InntektsjusteringRiver(
private fun startBehandlingAvInntektsjustering(
sak: Sak,
journalpostResponse: OpprettJournalpostResponse,
id: UUID,
inntektsjusteringId: UUID,
) {
behandlingKlient.behandleInntektsjustering(
sak.id,
journalpostResponse.journalpostId,
id,
inntektsjusteringId,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ data class AarligInntektsjusteringRequest(
data class InntektsjusteringRequest(
val sak: SakId,
val journalpostId: String,
val mottattId: UUID,
val inntektsjusteringId: UUID,
) {
companion object {
fun utledKjoering(mottatt: UUID) = "INNTEKTSJUSTERING_${utledLoependeFom()}_$mottatt"
fun utledKjoering(id: UUID) = "INNTEKTSJUSTERING_${utledLoependeFom()}_$id"

fun utledLoependeFom() = YearMonth.of(Year.now().value, 1).plusYears(1)
}
Expand Down

0 comments on commit a7dc8f9

Please sign in to comment.