From fb2556a85e3e96b3530694c9da0e6ce3341a0ea5 Mon Sep 17 00:00:00 2001 From: Kevin McAnoy Date: Tue, 3 Nov 2020 15:46:30 -0800 Subject: [PATCH] change stream action (#119) --- .../com/redhat/labs/lodestar/service/EngagementService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/redhat/labs/lodestar/service/EngagementService.java b/src/main/java/com/redhat/labs/lodestar/service/EngagementService.java index 2abeb8bd..f692bf86 100644 --- a/src/main/java/com/redhat/labs/lodestar/service/EngagementService.java +++ b/src/main/java/com/redhat/labs/lodestar/service/EngagementService.java @@ -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 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; }); }