Skip to content

Commit

Permalink
change stream action (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanoy authored Nov 3, 2020
1 parent 7898171 commit fb2556a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,12 @@ public void setNullUuids() {

LOGGER.debug("{} with null uuids", repository.findByNullUuid().size());
// get all engagements with null UUID
repository.findByNullUuid().stream().map(e -> {
repository.findByNullUuid().stream().forEach(e -> {
setEngagementAction(e, FileAction.update);
e.setUuid(UUID.randomUUID().toString());
Optional<Engagement> o = repository.updateUuidForEngagement(e.getCustomerName(), e.getProjectName(),
e.getUuid(), FileAction.update.name(), BACKEND_BOT, BACKEND_BOT_EMAIL);
LOGGER.debug("optional after uuid update {}", o);
return e;
});

}
Expand Down

0 comments on commit fb2556a

Please sign in to comment.