Skip to content

Commit

Permalink
Merge pull request #59 from 7th-UMC/feature/53
Browse files Browse the repository at this point in the history
Refactor : 스케줄러 코드 수정
  • Loading branch information
hyeonda02 authored Aug 31, 2024
2 parents 17e965f + c890201 commit 2bd2fda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class SchedulerServiceImpl implements SchedulerService{
private final PhotoRepository photoRepository;
private final UuidRepository uuidRepository;
private final AmazonS3Manager s3Manager;
@Scheduled(cron = "0 0/1 * * * ?", zone = "Asia/Seoul")
@Scheduled(cron = "0 0 6 * * ?", zone = "Asia/Seoul")
@Transactional
public void deletePhoto() {
log.info("Scheduled task started for deleting photos");
Expand All @@ -41,7 +41,7 @@ public void deletePhoto() {
uuidRepository.delete(uuid);
});
}
private String extractUuidFromPhotoUrl(String photoUrl){
public String extractUuidFromPhotoUrl(String photoUrl){
String[] parts = photoUrl.split("/");
String uuid = parts[parts.length-1];
System.out.println(uuid);
Expand Down

0 comments on commit 2bd2fda

Please sign in to comment.