File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/main/java/guesthouse/user/service Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 44import guesthouse .certificate .repository .CertificateRepository ;
55import guesthouse .user .domain .model .User ;
66import guesthouse .user .domain .vo .Gender ;
7- import guesthouse .user .domain .vo .PersonalInfo ;
87import guesthouse .user .dto .ProfileDTO ;
98import guesthouse .user .exception .UserErrorCode ;
109import guesthouse .user .exception .UserException ;
@@ -29,7 +28,6 @@ public User findById(Long id) {
2928 .orElseThrow (() -> new UserException (UserErrorCode .NOT_FOUND ));
3029 }
3130
32- @ Transactional
3331 public void updatePersonalInfo (String name ,
3432 String phoneNumber ,
3533 LocalDate birthDate ,
@@ -49,9 +47,8 @@ public ProfileDTO getProfile(Long userId) {
4947 boolean hasInReview = certificates .stream ()
5048 .anyMatch (certificate -> certificate .getStatus ().isInReview ());
5149
52- PersonalInfo personalInfo = user .getPersonalInfo ();
5350 return new ProfileDTO (
54- personalInfo != null ? personalInfo . getName () : null ,
51+ user . getPersonalInfo (). getName (),
5552 user .getProfileImageUrl (),
5653 isOwner ,
5754 hasInReview
You can’t perform that action at this time.
0 commit comments