diff --git a/pom.xml b/pom.xml index 966e0dd..23720d5 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.wiemanboy WiemanApi - 1.1.0 + 1.1.1 WiemanApi WiemanApi diff --git a/src/main/java/com/wiemanboy/wiemanapi/application/ProfileService.java b/src/main/java/com/wiemanboy/wiemanapi/application/ProfileService.java index 127c794..9e0d8b1 100644 --- a/src/main/java/com/wiemanboy/wiemanapi/application/ProfileService.java +++ b/src/main/java/com/wiemanboy/wiemanapi/application/ProfileService.java @@ -44,6 +44,7 @@ public Profile createProfile(String firstName, String lastName, String username, ).toList(), socialDtos.stream().map( socialDto -> Social.builder() + .username(socialDto.username()) .platform(socialDto.platform()) .url(URI.create(socialDto.url())) .build() @@ -51,6 +52,7 @@ public Profile createProfile(String firstName, String lastName, String username, skillSectionDtos.stream().map( skillSectionDto -> SkillSection.builder() .title(skillSectionDto.title()) + .locale(skillSectionDto.locale()) .skills(skillSectionDto.skills().stream() .map( skillDto -> Skill.builder() @@ -92,6 +94,7 @@ public Profile updateProfile(String id, String firstName, String lastName, Strin profile.setSocials( socialDtos.stream().map( socialDto -> Social.builder() + .username(socialDto.username()) .platform(socialDto.platform()) .url(URI.create(socialDto.url())) .build() @@ -103,6 +106,7 @@ public Profile updateProfile(String id, String firstName, String lastName, Strin skillSectionDtos.stream().map( skillSectionDto -> SkillSection.builder() .title(skillSectionDto.title()) + .locale(skillSectionDto.locale()) .skills(skillSectionDto.skills().stream() .map( skillDto -> Skill.builder()