Skip to content

Commit

Permalink
Merge pull request #121 from kookmin-sw/backend/develop/v3
Browse files Browse the repository at this point in the history
Backend/develop/v3
  • Loading branch information
J-Yong99 authored Apr 30, 2024
2 parents e3fac12 + 3ad5aa4 commit 7c5af52
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 7c5af52

Please sign in to comment.