From f6a4beff78cbe354ac8c3f3c130696f34c230ee1 Mon Sep 17 00:00:00 2001 From: blaxsior Date: Fri, 23 Aug 2024 18:24:03 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20delete=20many=20=EC=8B=9C=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=EC=9D=84=20null=20=EC=B2=B4=ED=81=AC=EB=A1=9C=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=ED=95=B4=20=ED=95=AD=EC=83=81=20=EC=98=88?= =?UTF-8?q?=EC=99=B8=EB=A1=9C=20=EA=B0=84=EC=A3=BC=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95=20(#147)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../softeer/orange/admin/controller/AdminEventController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hyundai/softeer/orange/admin/controller/AdminEventController.java b/src/main/java/hyundai/softeer/orange/admin/controller/AdminEventController.java index 0144a11..d0da571 100644 --- a/src/main/java/hyundai/softeer/orange/admin/controller/AdminEventController.java +++ b/src/main/java/hyundai/softeer/orange/admin/controller/AdminEventController.java @@ -115,7 +115,7 @@ public ResponseEntity deleteEvent( }) public ResponseEntity> 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); }