Skip to content

Commit

Permalink
Merge pull request #54 from Team-Puzzling/fix/#53-review-team-status-api
Browse files Browse the repository at this point in the history
#53 [FIX] 팀원 회고 상황 조회 API에서 빈 배열 null로 처리
  • Loading branch information
Hong0329 authored Jul 18, 2023
2 parents c494bfb + 88e5853 commit b801980
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 b801980

Please sign in to comment.