mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Fix get card data (#8)
This commit is contained in:
parent
4ae1db1be5
commit
a99037996a
2
pom.xml
2
pom.xml
@ -13,7 +13,7 @@
|
||||
</parent>
|
||||
|
||||
<artifactId>adapter-flow-lib</artifactId>
|
||||
<version>0.0.4</version>
|
||||
<version>0.0.5</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>adapter-flow-lib</name>
|
||||
|
@ -18,16 +18,7 @@ public class TagManagementService {
|
||||
Optional<String> 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<String, String> parameters) {
|
||||
Optional<String> first = adapterProperties.getTagGeneratorFieldNames().stream()
|
||||
.filter(s -> StringUtils.hasText(parameters.get(s)))
|
||||
.findFirst();
|
||||
return first.get();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user