From 0aa0e3a84d0785f34771cfcd6bb89fe14f358a9a Mon Sep 17 00:00:00 2001 From: jarno Date: Sat, 19 Oct 2024 16:49:19 +0200 Subject: [PATCH] FIX: return dto --- pom.xml | 2 +- .../wiemanapi/presentation/dto/response/ProfileLocaleDto.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 23720d5..0c9afb1 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.wiemanboy WiemanApi - 1.1.1 + 1.1.2 WiemanApi WiemanApi diff --git a/src/main/java/com/wiemanboy/wiemanapi/presentation/dto/response/ProfileLocaleDto.java b/src/main/java/com/wiemanboy/wiemanapi/presentation/dto/response/ProfileLocaleDto.java index 5e9e38f..70c7736 100644 --- a/src/main/java/com/wiemanboy/wiemanapi/presentation/dto/response/ProfileLocaleDto.java +++ b/src/main/java/com/wiemanboy/wiemanapi/presentation/dto/response/ProfileLocaleDto.java @@ -10,7 +10,7 @@ public record ProfileLocaleDto( String firstName, String lastName, String username, - Description descriptions, + Description description, List skillSections, List socials ) { @@ -21,7 +21,7 @@ public static ProfileLocaleDto from(Profile profile, String locale) { profile.getLastName(), profile.getUsername(), profile.getDescription(locale), - SkillSectionDto.from(profile.getSkillSections()), + SkillSectionDto.from(profile.getSkillSections(locale)), SocialDto.from(profile.getSocials()) ); }