diff --git a/finpik-api/src/main/java/finpik/resolver/profile/resolver/result/ProfileResult.java b/finpik-api/src/main/java/finpik/resolver/profile/resolver/result/ProfileResult.java index 8c86e98..dca2878 100644 --- a/finpik-api/src/main/java/finpik/resolver/profile/resolver/result/ProfileResult.java +++ b/finpik-api/src/main/java/finpik/resolver/profile/resolver/result/ProfileResult.java @@ -7,6 +7,7 @@ import finpik.resolver.profile.application.dto.ProfileResultDto; import lombok.Builder; +import java.time.LocalDate; import java.time.LocalDateTime; @Builder @@ -22,7 +23,7 @@ public record ProfileResult( String profileName, ProfileColor profileColor, Integer annualIncome, - LocalDateTime createdAt, + LocalDate createdAt, Integer recommendedLoanProductCount, Float minInterestRate ) { @@ -40,7 +41,7 @@ public static ProfileResult of(ProfileResultDto profile) { .profileSeq(profile.getProfileSeq()) .profileColor(profile.getProfileColor()) .annualIncome(profile.getAnnualIncome()) - .createdAt(profile.getCreatedAt()) + .createdAt(profile.getCreatedAt().toLocalDate()) .recommendedLoanProductCount(profile.getRecommendedLoanProductCount()) .minInterestRate(profile.getMinInterestRate()) .build(); diff --git a/finpik-api/src/main/resources/graphql/profile.graphqls b/finpik-api/src/main/resources/graphql/profile.graphqls index cd0b738..2f098ed 100644 --- a/finpik-api/src/main/resources/graphql/profile.graphqls +++ b/finpik-api/src/main/resources/graphql/profile.graphqls @@ -69,7 +69,7 @@ type ProfileResult { profileSeq: Int! profileName: String! profileColor: ProfileColor! - createdAt: DateTime! + createdAt: Date! recommendedLoanProductCount: Int! minInterestRate: Float! }