Skip to content

Commit

Permalink
#53 [FIX] 팀원 회고 상황 조회 API에서 빈 배열 null로 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Jul 18, 2023
1 parent c494bfb commit 88e5853
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ public List<ReviewTeamStatusResponseDto> getTeamReviewStatus(Long projectId, Str
nonReviewWriters.add(ReviewWriterObjectDto.of(userProject.getNickname(), userProject.getRole()));
}
}
result.add(ReviewTeamStatusResponseDto.of(getDayOfWeek(reviewDate), reviewDate, reviewWriters, nonReviewWriters));

result.add(ReviewTeamStatusResponseDto.of(getDayOfWeek(reviewDate), reviewDate, reviewWriters.isEmpty() ? null : reviewWriters, nonReviewWriters.isEmpty() ? null : nonReviewWriters));

}
return result;
}
Expand Down

0 comments on commit 88e5853

Please sign in to comment.