From 41da51b0052463dc0239e94d8c9bf53ac5858f6d Mon Sep 17 00:00:00 2001 From: Jeongho Date: Wed, 5 Jun 2024 11:29:56 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=99=9C=EB=8F=99=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/custom/ActivityRepositoryImpl.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/com/meetup/teame/backend/domain/activity/repository/custom/ActivityRepositoryImpl.java b/src/main/java/com/meetup/teame/backend/domain/activity/repository/custom/ActivityRepositoryImpl.java index b1ebb59..b569b02 100644 --- a/src/main/java/com/meetup/teame/backend/domain/activity/repository/custom/ActivityRepositoryImpl.java +++ b/src/main/java/com/meetup/teame/backend/domain/activity/repository/custom/ActivityRepositoryImpl.java @@ -33,10 +33,6 @@ public List findActivitiesForUser(User user) { public List findByAgencyAndPersonalities(long offset, long limit, User user, List agencyTypes, List personalities) { BooleanBuilder builder = new BooleanBuilder(); - if (user != null && !user.getPersonalities().isEmpty()) { - builder.and(activity.personalities.any().in(user.getPersonalities())); - } - if (personalities != null && !personalities.isEmpty()) { builder.or(activity.personalities.any().in(personalities)); } @@ -95,10 +91,6 @@ public List findLikedActivities(Long userId, long offset, long limit, public Long countActivities(List agencyTypes, List personalities, User user) { BooleanBuilder builder = new BooleanBuilder(); - if (user != null && !user.getPersonalities().isEmpty()) { - builder.and(activity.personalities.any().in(user.getPersonalities())); - } - // agencyTypes나 personalities가 입력된 경우 해당 값으로 필터링 if (agencyTypes != null && !agencyTypes.isEmpty()) { builder.and(activity.agencyType.in(agencyTypes));