Skip to content

Commit

Permalink
Fix: 알림이 없습니다 에러 뜨는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
devbattery committed Feb 5, 2025
1 parent 5f3b8a7 commit 153a307
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@ public void saveAll(List<Notification> notificationList) {

@Override
public List<Notification> findByMemberIdAndIsRead(MemberId memberId, Boolean isRead) {
List<Notification> notificationList =
notificationMongoRepository.findByMemberIdAndIsReadOrderByTimestampDesc(memberId, isRead);

if (notificationList == null || notificationList.isEmpty()) {
throw new NotificationNotFoundException(); //
}
return notificationList;
return notificationMongoRepository.findByMemberIdAndIsReadOrderByTimestampDesc(memberId, isRead);
}



}

0 comments on commit 153a307

Please sign in to comment.