Skip to content

Commit

Permalink
๐Ÿ”€ :: (#269) ๋‹‰๋„ค์ž„์œผ๋กœ ๊ฒ€์ƒ‰ Api ๋ฒ„๊ทธ
Browse files Browse the repository at this point in the history
  • Loading branch information
leeseojune53 authored Jan 6, 2023
2 parents b5f153a + 4e2aa9f commit 32039f3
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 32039f3

Please sign in to comment.