From d8f9b79a2ba7a98203cfc38de08424c0e0172c79 Mon Sep 17 00:00:00 2001 From: kgy1008 Date: Sun, 14 Jul 2024 22:37:44 +0900 Subject: [PATCH] [refac] add missing transational annotation --- .../hankki/hankkiserver/api/user/service/UserQueryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/hankki/hankkiserver/api/user/service/UserQueryService.java b/src/main/java/org/hankki/hankkiserver/api/user/service/UserQueryService.java index 12881421..dd21b49c 100644 --- a/src/main/java/org/hankki/hankkiserver/api/user/service/UserQueryService.java +++ b/src/main/java/org/hankki/hankkiserver/api/user/service/UserQueryService.java @@ -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());