Skip to content

Commit

Permalink
[refac] add missing transational annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jul 14, 2024
1 parent ddfa2f2 commit d8f9b79
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public UserUniversityFindResponse findUserUniversity(Long userId) {
.orElseThrow(() -> new NotFoundException(UserUniversityErrorCode.USER_UNIVERSITY_NOT_FOUND)));
}

@Transactional(readOnly = true)
public UserProfileAndNicknmaeResponse getUserProfileAndNickname(final Long userId) {
UserInfo userInfo = userInfoFinder.getUserInfo(userId);
return UserProfileAndNicknmaeResponse.of(userInfo.getNickname(), userInfo.getProfileImageUrl());
Expand Down

0 comments on commit d8f9b79

Please sign in to comment.