Skip to content

Commit

Permalink
Merge pull request #271 from depromeet/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
leeseojune53 authored Jan 7, 2023
2 parents a93f7fb + 32039f3 commit dce4484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public interface UserRepository extends CrudRepository<User, Long> {

List<User> findByNicknameLike(String nickname);
List<User> findByNicknameContaining(String nickname);

Optional<User> findByOauthIdAndOauthProvider(String oauthId, String oauthProvider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class UserService {

public QueryUserByNicknameResponse queryUserByNicknameResponse(String nickname) {
List<QueryUserByNicknameResponseElement> result =
userRepository.findByNicknameLike(nickname).stream()
userRepository.findByNicknameContaining(nickname).stream()
.map(
user ->
new QueryUserByNicknameResponseElement(
Expand Down

0 comments on commit dce4484

Please sign in to comment.