Skip to content

Commit

Permalink
Merge pull request #120 from kookmin-sw/backend/feat/#107
Browse files Browse the repository at this point in the history
Backend/feat/#107
  • Loading branch information
J-Yong99 authored Apr 30, 2024
2 parents 7485a57 + c4a6b4b commit 3ad5aa4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,16 @@ public ResponseEntity<APIResponse> uploadImage(
imageFileService.uploadAll(images, cardViewId, userId);
return ResponseEntity.ok(APIResponse.of(SuccessCode.INSERT_SUCCESS));
}

// 카드뷰에 이미지 삭제
@DeleteMapping(value = "/image")
public ResponseEntity<APIResponse> deleteImages(
@RequestHeader Long userId,
@RequestBody List<Long> images
) throws IOException {
imageFileService.deleteImages(images, userId);
return ResponseEntity.ok(APIResponse.of(SuccessCode.DELETE_SUCCESS));
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw
log.info("sleep");
sleep(9000);
}
sleep(20000);
// 경과 시간 체크를 위한 시작 시간
long startTime = System.currentTimeMillis();
List<CardView> cards = cardViewRepository.findAllByRecordFileStatusIn(List.of("WAIT", "FAIL"));
Expand Down

0 comments on commit 3ad5aa4

Please sign in to comment.