Skip to content

Commit

Permalink
feat. id på arena_agreement_migration som lagres ved start av prosses…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
eirikv committed Dec 13, 2024
1 parent 6bfdb06 commit e24a14a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,7 +22,7 @@ public ArenaAgreementJob(ArenaAgreementService arenaAgreementService) {

@Scheduled(fixedRate = 30, timeUnit = TimeUnit.SECONDS)
public void run() {
List<ArenaAgreementAggregate> arenaAgreements = arenaAgreementService.getArenaAgreementsForProcessing();
Map<UUID, ArenaAgreementAggregate> arenaAgreements = arenaAgreementService.getArenaAgreementsForProcessing();

if (!arenaAgreements.isEmpty()) {
arenaAgreementService.processAgreements(arenaAgreements);
Expand Down

0 comments on commit e24a14a

Please sign in to comment.