Skip to content

Commit

Permalink
fix(upgrade-caricamento): fix polling 20240926
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravinadxc committed Sep 26, 2024
1 parent 9a24aa8 commit 750df1e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ public RegistroAttivitaEntity saveRegistroAttivita(RegistroAttivitaEntity regist
public RegistroAttivitaEntity getRegistroAttivitaByUUID(String jobUUID) {
String uuid = jobUUID.replaceAll("-", "");
Optional<RegistroAttivitaEntity> registroOpt = registroAttivitaRepository.findByJobUUID(uuid);
if (!registroOpt.isPresent() || !registroOpt.get().getJobStatus().equals(JobStatusEnum.SUCCESS))
return RegistroAttivitaEntity.builder()
.jobStatus(JobStatusEnum.IN_PROGRESS).build();
if (!registroOpt.isPresent())
return RegistroAttivitaEntity.builder().jobStatus(JobStatusEnum.IN_PROGRESS).build();
return registroOpt.get();
}

Expand Down

0 comments on commit 750df1e

Please sign in to comment.