Skip to content

Commit

Permalink
refactor: 불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeyeon-yang committed Jul 4, 2024
1 parent 08611ac commit 3e84d75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,4 @@ public BaseResponse.SuccessResult<List<WakeupResponseDto.WakeupCertificateDto>>
return BaseResponse.success(wakeupChallengeService.getWakeupTimesByGroupId(groupId));
}

// @Operation(summary = "사용자 기상 시간 삭제")
// @DeleteMapping("/deleteMyWakeupTime")
// public BaseResponse.SuccessResult<String> deleteWakeupCertificate(@Auth String userCode) {
// UUID uuid = UUID.fromString(userCode);
// wakeupChallengeService.deleteWakeupCertificate(uuid);
// return BaseResponse.success("사용자 기상 시간 삭제 성공");
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,4 @@ public List<WakeupResponseDto.WakeupCertificateDto> getWakeupTimesByGroupId(long
return wakeupTimes;
}

// public void deleteWakeupCertificate(UUID userCode) {
// User user = userRepository.findByUserCode(userCode)
// .orElseThrow(() -> new BaseException(BaseResponseStatus.USERS_EMPTY_USER_ID));
//
// String userId = user.getPhoneNumber();
// Long groupId = groupMemberRepository.findGroupByUserId(userId);
//
// String key = "wakeup:certificate:group:" + groupId + ":userId:" + userId;
// redisTemplate.delete(key);
// }


}

0 comments on commit 3e84d75

Please sign in to comment.