Skip to content

Commit

Permalink
[feat] add @transactional(readOnly = true)
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 16, 2024
1 parent 640de74 commit cfc62f7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public UserProfileAndNicknameResponse getUserProfileAndNickname(final Long userI
return UserProfileAndNicknameResponse.of(userInfoFinder.getUserInfo(userId));
}

@Transactional(readOnly = true)
public UserStoresReportedGetResponse findUserStoreReported(final Long userId) {
return UserStoresReportedGetResponse.of(reportFinder.findAllByUserId(userId).stream().map(Report::getStore).distinct().toList());
}
Expand Down

0 comments on commit cfc62f7

Please sign in to comment.