Skip to content

Commit

Permalink
Legger til Async-flagg (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
olekvernberg authored Dec 6, 2023
1 parent 5edaf7e commit 92bcd7e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import no.nav.familie.kontrakter.felles.oppgave.Oppgavetype
import no.nav.familie.kontrakter.felles.oppgave.OpprettOppgaveRequest
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Service
import java.time.Month
import java.time.YearMonth
Expand All @@ -34,6 +35,7 @@ class VedtakendringerService(
val logger: Logger = LoggerFactory.getLogger(this::class.java)
val secureLogger: Logger = LoggerFactory.getLogger("secureLogger")

@Async
fun beregnInntektsendringerOgLagreIDb() {
logger.info("Starter beregning av inntektsendringer")
val personerMedAktivStønad = sakClient.hentPersonerMedAktivStønadIkkeManueltRevurdertSisteMåneder(4)
Expand Down

0 comments on commit 92bcd7e

Please sign in to comment.