From 4e2aa9f91911c60538a8f6a61aecf7ce58427a2f Mon Sep 17 00:00:00 2001 From: Leeseojune Date: Fri, 6 Jan 2023 17:23:35 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20::=20Containing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/user/domain/repository/UserRepository.java | 2 +- .../knockknockbackend/domain/user/service/UserService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/depromeet/knockknockbackend/domain/user/domain/repository/UserRepository.java b/src/main/java/io/github/depromeet/knockknockbackend/domain/user/domain/repository/UserRepository.java index 958d242e..24da10d3 100644 --- a/src/main/java/io/github/depromeet/knockknockbackend/domain/user/domain/repository/UserRepository.java +++ b/src/main/java/io/github/depromeet/knockknockbackend/domain/user/domain/repository/UserRepository.java @@ -8,7 +8,7 @@ public interface UserRepository extends CrudRepository { - List findByNicknameLike(String nickname); + List findByNicknameContaining(String nickname); Optional findByOauthIdAndOauthProvider(String oauthId, String oauthProvider); diff --git a/src/main/java/io/github/depromeet/knockknockbackend/domain/user/service/UserService.java b/src/main/java/io/github/depromeet/knockknockbackend/domain/user/service/UserService.java index 9fe46e99..02574e58 100644 --- a/src/main/java/io/github/depromeet/knockknockbackend/domain/user/service/UserService.java +++ b/src/main/java/io/github/depromeet/knockknockbackend/domain/user/service/UserService.java @@ -27,7 +27,7 @@ public class UserService { public QueryUserByNicknameResponse queryUserByNicknameResponse(String nickname) { List result = - userRepository.findByNicknameLike(nickname).stream() + userRepository.findByNicknameContaining(nickname).stream() .map( user -> new QueryUserByNicknameResponseElement(