Skip to content

Commit

Permalink
Merge pull request #152 from softeerbootcamp4th/fix/147-event-user-pa…
Browse files Browse the repository at this point in the history
…ging

[chore] delete many 시 조건을 null 체크로 처리해 항상 예외로 간주하는 문제 수정 (#147)
  • Loading branch information
blaxsior authored Aug 23, 2024
2 parents 868d114 + f6a4bef commit 7c49003
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 7c49003

Please sign in to comment.