Skip to content

Commit

Permalink
[πŸ”₯!hotfix/#84] ν™ˆ > λ‚˜μ—κ²Œ λ”±λ§žλŠ” 인턴 곡고 쑰회 응닡 데이터 λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
junggyo1020 committed Jul 18, 2024
1 parent 5d49776 commit 891bf77
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public List<HomeResponseDto> getAnnouncements(Long userId, String sortBy, int st
User user = userRepository.findById(userId).orElseThrow(
() -> new CustomException(ErrorMessage.NOT_FOUND_USER_EXCEPTION)
);

// 필터링 μƒνƒœκ°€ 없을 경우 NULL 리턴
if(user.getFilter() == null){
return null;
}

List<InternshipAnnouncement> announcements = internshipRepository.findFilteredInternships(user, sortBy, startYear, startMonth);

return announcements.stream()
Expand Down

0 comments on commit 891bf77

Please sign in to comment.