Skip to content

Commit

Permalink
feat : 스케줄러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
WestSilver99 committed Jan 26, 2024
1 parent 7d7ce5f commit be8f81d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public void changeStatus() {
User user = userRepository.findById(product.getUserId())
.orElseThrow(() -> new CustomException(USER_NOT_FOUND));

//판매자 계좌 있는지 확인
if (user.getAccountNumber() == null) {
throw new CustomException("등록된 계좌가 없습니다.", ErrorCode.NO_REGISTERED_ACCOUNT);
}
// //판매자 계좌 있는지 확인
// if (user.getAccountNumber() == null) {
// throw new CustomException("등록된 계좌가 없습니다.", ErrorCode.NO_REGISTERED_ACCOUNT);
// }

//양도 시간 지났는지 확인, 지났으면 양도 처리
if (updatedAt != null && currentTime.isAfter(updatedAt.plusMinutes(5))) {
Expand Down

0 comments on commit be8f81d

Please sign in to comment.