Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jflamy committed Aug 14, 2024
1 parent ad45767 commit 28f3ec7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ public void setCreateMissingGroups(boolean createMissingGroups) {
@Override
public void updateAthletes(Consumer<String> errorConsumer, RCompetition c, List<RAthlete> athletes) {
JPAService.runInTransaction(em -> {
logger.warn("start1=====================");
// Competition curC = Competition.getCurrent();
try {
// Create the new athletes.
Expand All @@ -256,12 +255,10 @@ public void updateAthletes(Consumer<String> errorConsumer, RCompetition c, List<
LoggerUtils.stackTrace(e);
errorConsumer.accept(e.toString());
}
logger.warn("end1=====================");
return null;
});

JPAService.runInTransaction(em -> {
logger.warn("start2=====================");
AthleteRepository.findAll().stream().forEach(a2 -> {
LinkedHashSet<Category> eligibles = (LinkedHashSet<Category>) RCompetition
.getAthleteToEligibles()
Expand Down Expand Up @@ -289,7 +286,6 @@ public void updateAthletes(Consumer<String> errorConsumer, RCompetition c, List<
em.merge(a2);
}
});
logger.warn("end2=====================");
em.flush();
return null;
});
Expand Down

0 comments on commit 28f3ec7

Please sign in to comment.