Skip to content

Commit

Permalink
codesquad-issue-team-05#102 fix : 마일스톤 null 처리 수정 , 이슈 목록조회 상태 디폴트 값 …
Browse files Browse the repository at this point in the history
…open 으로 지정
  • Loading branch information
DOEKYONG committed Aug 17, 2023
1 parent 1d6ffbb commit f1b1e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class IssueController {
private final IssueService issueService;

@GetMapping("/issues")
public ApiResponse<IssueFilteredResponseDto> getIssues(@RequestParam String status,
public ApiResponse<IssueFilteredResponseDto> getIssues(@RequestParam(defaultValue = "open") String status,
@RequestParam(required = false) List<Long> labels,
@RequestParam(required = false) Long milestone,
@RequestParam(required = false) Long writer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public IssueFilteredResponseDto findByFilter(IssueSearch issueSearch) {

@Transactional
public Long save(IssueWriteRequestDto request, Long id) {
milestoneService.isExistMilestone(request.getMilestoneId());
if (request.getMilestoneId() != null) {
milestoneService.isExistMilestone(request.getMilestoneId());
}
List<Long> labels = request.getLabels();
List<Long> assignees = request.getAssignees();
Issue issue = IssueWriteRequestDto.toEntity(request, id);
Expand Down

0 comments on commit f1b1e04

Please sign in to comment.