Skip to content

Commit

Permalink
[#52] feat: 임시 following user 반환 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyoungchoi95 committed Sep 20, 2021
1 parent a0a7275 commit a61b9b5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ public ProfileService(UserRepository userRepository) {
}

@Transactional
public void followUser(Long loginId, Username username) {
public User followUser(Long loginId, Username username) {
User user = findById(loginId);
User followee = findByUsername(username);
user.followingUser(followee);
return followee;
}

@Transactional(readOnly = true)
Expand Down

0 comments on commit a61b9b5

Please sign in to comment.