From 137d8592f10b4cb6670b263f1ae256201a9d6b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=84=EC=84=B1=ED=95=84?= Date: Tue, 21 Jan 2025 13:20:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=AC=EB=A0=89=EC=85=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EB=A1=9C=EC=A7=81=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testmaster/client/service/ApiRequestMgmtService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/eactive/testmaster/client/service/ApiRequestMgmtService.java b/src/main/java/com/eactive/testmaster/client/service/ApiRequestMgmtService.java index 232793a..61194a5 100644 --- a/src/main/java/com/eactive/testmaster/client/service/ApiRequestMgmtService.java +++ b/src/main/java/com/eactive/testmaster/client/service/ApiRequestMgmtService.java @@ -38,11 +38,7 @@ public class ApiRequestMgmtService { public void deleteApiCollection(String id) { ApiCollection collection = apiCollectionRepository.findById(id).orElseThrow(() -> new NotFoundException(String.format(API_COLLECTION_NOT_FOUND, id))); - - if (!collection.getApis().isEmpty()) { - throw new RuntimeException("api collection[" + id + "] is not empty"); - } - apiCollectionRepository.deleteById(id); + apiCollectionRepository.deleteById(collection.getId()); } public void createNewApiCollection(ApiCollection collection) {