Commit f6e10c37 authored by LAVENIER's avatar LAVENIER
Browse files

[fix] CI: fix yaml

parent ea1a6ab0
......@@ -199,6 +199,10 @@ public class PersonRepositoryImpl
if (CollectionUtils.isNotEmpty(source.getUserProfiles())) {
List<String> profiles = source.getUserProfiles().stream()
.map(UserProfile::getLabel)
// Convert DB label into name of UserProfileEnum
.map(label -> UserProfileEnum.findByLabel(label).orElse(null))
.filter(Objects::nonNull)
.map(Enum::name)
.collect(Collectors.toList());
target.setProfiles(profiles);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment