From 253ac4f4c69ba3cb848445495117a4d076ad1483 Mon Sep 17 00:00:00 2001 From: Lucia Mazzocchi Date: Mon, 27 Nov 2023 10:04:53 +0100 Subject: [PATCH] merged fix deploy --- .../service/model/service/impl/BpmnBankConfigService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnBankConfigService.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnBankConfigService.java index 8f31eb45..cce71311 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnBankConfigService.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnBankConfigService.java @@ -21,7 +21,6 @@ public class BpmnBankConfigService { @Inject protected BpmnBankConfigRepository bankConfigRepository; - @Inject BpmnConfigMapper bpmnConfigMapper; @@ -45,7 +44,6 @@ public Uni> findByConfigurationsAndFunction(String acqu if (x.size() > 1) { throw new AtmLayerException("Multiple BPMN found for a single configuration.", Response.Status.INTERNAL_SERVER_ERROR, AppErrorCodeEnum.ATMLM_500); } - return Uni.createFrom().item(x.isEmpty() ? Optional.empty() : Optional.ofNullable(x.get(0))); })); }