diff --git a/backend/moment/moment-server/core/src/main/java/com/moment/core/controller/CardViewController.java b/backend/moment/moment-server/core/src/main/java/com/moment/core/controller/CardViewController.java index e1ee2aef07..b3e1274dd1 100644 --- a/backend/moment/moment-server/core/src/main/java/com/moment/core/controller/CardViewController.java +++ b/backend/moment/moment-server/core/src/main/java/com/moment/core/controller/CardViewController.java @@ -140,5 +140,16 @@ public ResponseEntity uploadImage( imageFileService.uploadAll(images, cardViewId, userId); return ResponseEntity.ok(APIResponse.of(SuccessCode.INSERT_SUCCESS)); } + + // 카드뷰에 이미지 삭제 + @DeleteMapping(value = "/image") + public ResponseEntity deleteImages( + @RequestHeader Long userId, + @RequestBody List images + ) throws IOException { + imageFileService.deleteImages(images, userId); + return ResponseEntity.ok(APIResponse.of(SuccessCode.DELETE_SUCCESS)); + } + } diff --git a/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java b/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java index b44ea701e4..08594be6fe 100644 --- a/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java +++ b/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java @@ -44,6 +44,7 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw log.info("sleep"); sleep(9000); } + sleep(20000); // 경과 시간 체크를 위한 시작 시간 long startTime = System.currentTimeMillis(); List cards = cardViewRepository.findAllByRecordFileStatusIn(List.of("WAIT", "FAIL"));