From a99037996a6e8fd612ddb80c40ada57ac4cb067e Mon Sep 17 00:00:00 2001 From: struga Date: Tue, 1 Mar 2022 13:23:22 +0300 Subject: [PATCH] Fix get card data (#8) --- pom.xml | 2 +- .../flow/lib/service/TagManagementService.java | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 03701e0..199aaa5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ adapter-flow-lib - 0.0.4 + 0.0.5 jar adapter-flow-lib diff --git a/src/main/java/dev/vality/adapter/flow/lib/service/TagManagementService.java b/src/main/java/dev/vality/adapter/flow/lib/service/TagManagementService.java index 7198f93..c9bd95f 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/service/TagManagementService.java +++ b/src/main/java/dev/vality/adapter/flow/lib/service/TagManagementService.java @@ -18,16 +18,7 @@ public class TagManagementService { Optional first = adapterProperties.getTagGeneratorFieldNames().stream() .filter(s -> StringUtils.hasText(parameters.get(s))) .findFirst(); - return first.get(); + return adapterProperties.getTagPrefix() + parameters.get(first.get()); } - @SneakyThrows - public String get(Map parameters) { - Optional first = adapterProperties.getTagGeneratorFieldNames().stream() - .filter(s -> StringUtils.hasText(parameters.get(s))) - .findFirst(); - return first.get(); - } - - }