Skip to content

Commit

Permalink
Fikset slik at ansatte personer ble logget. Hadde blitt fjernet. #dep…
Browse files Browse the repository at this point in the history
…loy-levende-arbeidsforhold-ansettelse
  • Loading branch information
Andrea-Devold-Fjeld committed Aug 4, 2024
1 parent a52dab2 commit 0a79a68
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import no.nav.registre.testnorge.levendearbeidsforholdansettelse.entity.JobbParameterNavn;
import no.nav.registre.testnorge.levendearbeidsforholdansettelse.service.util.AlderspennList;
import no.nav.registre.testnorge.levendearbeidsforholdansettelse.service.util.AliasMethod;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.http.HttpStatusCode;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClientResponseException;
Expand All @@ -31,7 +33,7 @@ public class AnsettelseService {
private final KodeverkService kodeverkService;
private final AnsettelseLoggService ansettelseLoggService;

//@EventListener(ApplicationReadyEvent.class)
@EventListener(ApplicationReadyEvent.class)
public void runAnsettelseService() {
Thread thread = new Thread(this::ansettelseService);
thread.start();
Expand Down Expand Up @@ -142,6 +144,7 @@ public void ansettelseService() {
continue;
}
}
ansattePersoner.add(muligePersoner.get(tilfeldigIndex));
muligePersoner.remove(tilfeldigIndex);

} catch (NullPointerException e) {
Expand Down

0 comments on commit 0a79a68

Please sign in to comment.