Skip to content

Commit

Permalink
[chore] match/request/info request data 없을 때 빈 리스트 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeesw committed May 29, 2024
1 parent d288e2d commit 66e3161
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public List<MatchInfoResponseDto> getMatchRequestInfo(Long senderId) {

Set<String> keys = redisTemplate.keys("receiverId:*-senderId:" + senderId);
if (keys == null || keys.isEmpty()) {
throw new CustomException(ErrorCode.REQUEST_NOT_FOUND);
return new ArrayList<>(); // 빈 리스트 반환
}

List<MatchInfoResponseDto> response = new ArrayList<>();
Expand Down

0 comments on commit 66e3161

Please sign in to comment.