Skip to content

Commit

Permalink
Small fixes in graphql requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dragutin-nav committed Mar 7, 2024
1 parent df887ff commit d625122
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.veilarbvedtaksstotte.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
Expand Down Expand Up @@ -189,13 +188,18 @@ public void oppdaterUtkast(long vedtakId, OppdaterUtkastDTO vedtakDTO) {
});
}

private void oppdatereDokumentIdforJournalfortOyeblikksbilde(String journalpostId) throws JsonProcessingException {
Journalpost journalpost = safClient.hentJournalpost(journalpostId);
log.info("JOURNALPOST: " + new ObjectMapper().writeValueAsString(journalpost));
log.info("JOURNALPOST: " + journalpostId);
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.brevkode));
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.tittel));
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.dokumentInfoId));
private void oppdatereDokumentIdforJournalfortOyeblikksbilde(String journalpostId) {
try {
Journalpost journalpost = safClient.hentJournalpost(journalpostId);
log.info("JOURNALPOST: " + new ObjectMapper().writeValueAsString(journalpost));
log.info("JOURNALPOST: " + journalpostId);
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.brevkode));
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.tittel));
Arrays.stream(journalpost.dokumenter).forEach(x -> log.info(x.dokumentInfoId));
} catch (Exception e) {
log.error("Error oppdatereDokumentIdforJournalfortOyeblikksbilde " + e, e);
}


}

Expand Down

0 comments on commit d625122

Please sign in to comment.