Skip to content

Commit

Permalink
Merge pull request #308 from OutDecision/issue/306
Browse files Browse the repository at this point in the history
🐞 [BUGFIX]: 기본 프로필 이미지 삭제 오류 수정 및 토큰 시간 수정
  • Loading branch information
sye1101 authored Jun 11, 2024
2 parents 2507afe + 95777a4 commit f56bcdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void deleteImage(String ImgUrl) {
String fileName = ImgUrl.substring(ImgUrl.lastIndexOf(splitStr) + splitStr.length());

// 기본 프로필 이미지가 아닐 때, 삭제
if (!fileName.equals(defaultImg)) {
if (!ImgUrl.equals(defaultImg)) {
amazonS3Client.deleteObject(new DeleteObjectRequest(bucket, fileName));
System.out.println(" 사진 삭제 완료 ");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public String generateRefreshToken(String email, String role) {


public String generateAccessToken(String email, String role) {
long tokenPeriod = 1000L * 60L * 60L * 10L; // 1시간
// long tokenPeriod = 1000L * 10L;
long tokenPeriod = 1000L * 60L * 60L; // 1시간

Claims claims = Jwts.claims().setSubject(email);
claims.put("role", role);

Expand Down

0 comments on commit f56bcdc

Please sign in to comment.