diff --git a/main-server/src/main/java/com/sickgyun/server/profile/infra/database/ProfileQueryRepositoryImpl.java b/main-server/src/main/java/com/sickgyun/server/profile/infra/database/ProfileQueryRepositoryImpl.java index 961f394..a2c9224 100644 --- a/main-server/src/main/java/com/sickgyun/server/profile/infra/database/ProfileQueryRepositoryImpl.java +++ b/main-server/src/main/java/com/sickgyun/server/profile/infra/database/ProfileQueryRepositoryImpl.java @@ -51,7 +51,7 @@ private BooleanExpression recruitedFilter(Boolean isRecruited) { return null; } - return profile.company.isNotNull(); + return isRecruited ? profile.company.isNotNull() : profile.company.isNull(); } private BooleanExpression cardinalFilter(Long cardinal) {