Skip to content

Commit

Permalink
[chore] delete many 시 조건을 null 체크로 처리해 항상 예외로 간주하는 문제 수정 (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaxsior committed Aug 23, 2024
1 parent 8eaa9cb commit f6a4bef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public ResponseEntity<Void> deleteEvent(
})
public ResponseEntity<List<DeleteEventNotAllowedReasonDto>> deleteEvents(@Valid @RequestBody DeleteEventsDto dto) {
var result = eventService.deleteEvents(dto.getEventIds());
if(result == null) return ResponseEntity.ok().build();
if(result.isEmpty()) return ResponseEntity.ok().build();
return ResponseEntity.badRequest().body(result);
}

Expand Down

0 comments on commit f6a4bef

Please sign in to comment.