Skip to content

Commit

Permalink
fix. hente fra TILTAKGJENNOMFORING før TILTAKDELTAKER tabell for aren…
Browse files Browse the repository at this point in the history
…a events
  • Loading branch information
eirikv committed Nov 29, 2024
1 parent 22b80b9 commit 8bf77ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ private List<ArenaEvent> findEventsForProcessing() {
List<ArenaEvent> events = arenaEventRepository.findByStatus(ArenaEventStatus.CREATED, Limit.of(1000));

if (events.isEmpty() || events.size() <= 100) {
events.addAll(arenaEventRepository.findByStatusAndArenaTable(ArenaEventStatus.RETRY, ArenaTable.TILTAKDELTAKER.getTable(), Limit.of(1000)));
events.addAll(arenaEventRepository.findByStatusAndArenaTable(ArenaEventStatus.RETRY, ArenaTable.TILTAKGJENNOMFORING.getTable(), Limit.of(1000)));
}

if (events.isEmpty() || events.size() <= 100) {
events.addAll(arenaEventRepository.findByStatusAndArenaTable(ArenaEventStatus.RETRY, ArenaTable.TILTAKGJENNOMFORING.getTable(), Limit.of(1000)));
events.addAll(arenaEventRepository.findByStatusAndArenaTable(ArenaEventStatus.RETRY, ArenaTable.TILTAKDELTAKER.getTable(), Limit.of(1000)));
}

return events;
Expand Down

0 comments on commit 8bf77ca

Please sign in to comment.