From e24a14a6fa2ee1288eda06aec5543202f7a780e7 Mon Sep 17 00:00:00 2001 From: Eirik Vigeland Date: Fri, 13 Dec 2024 13:16:48 +0100 Subject: [PATCH] =?UTF-8?q?feat.=20id=20p=C3=A5=20arena=5Fagreement=5Fmigr?= =?UTF-8?q?ation=20som=20lagres=20ved=20start=20av=20prossesering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tiltaksgjennomforing/arena/job/ArenaAgreementJob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/no/nav/tag/tiltaksgjennomforing/arena/job/ArenaAgreementJob.java b/src/main/java/no/nav/tag/tiltaksgjennomforing/arena/job/ArenaAgreementJob.java index ccae0f0ac..123a6e509 100644 --- a/src/main/java/no/nav/tag/tiltaksgjennomforing/arena/job/ArenaAgreementJob.java +++ b/src/main/java/no/nav/tag/tiltaksgjennomforing/arena/job/ArenaAgreementJob.java @@ -7,7 +7,8 @@ import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; -import java.util.List; +import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; @Component @@ -21,7 +22,7 @@ public ArenaAgreementJob(ArenaAgreementService arenaAgreementService) { @Scheduled(fixedRate = 30, timeUnit = TimeUnit.SECONDS) public void run() { - List arenaAgreements = arenaAgreementService.getArenaAgreementsForProcessing(); + Map arenaAgreements = arenaAgreementService.getArenaAgreementsForProcessing(); if (!arenaAgreements.isEmpty()) { arenaAgreementService.processAgreements(arenaAgreements);