Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import finpik.resolver.profile.application.dto.ProfileResultDto;
import lombok.Builder;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Builder
Expand All @@ -22,7 +23,7 @@ public record ProfileResult(
String profileName,
ProfileColor profileColor,
Integer annualIncome,
LocalDateTime createdAt,
LocalDate createdAt,
Integer recommendedLoanProductCount,
Float minInterestRate
) {
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion finpik-api/src/main/resources/graphql/profile.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type ProfileResult {
profileSeq: Int!
profileName: String!
profileColor: ProfileColor!
createdAt: DateTime!
createdAt: Date!
recommendedLoanProductCount: Int!
minInterestRate: Float!
}
Expand Down