Skip to content

Commit a0fb187

Browse files
Merge pull request #108 from marshmallowing/fix/profile
#107 Fix: 기본 프로필 수정
2 parents b78c70c + 78b190d commit a0fb187

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/main/java/com/memesphere/domain/image/controller/ImageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ApiResponse<String> getProfile(@AuthenticationPrincipal CustomUserDetails
4343
// 현재 로그인한 유저 정보에서 프로필 이미지 가져오기
4444
String profileImage = profileService.getProfileImage(customUserDetails);
4545

46-
return ApiResponse.onSuccess((profileImage == null || profileImage.isEmpty()) ? "null" : profileImage);
46+
return ApiResponse.onSuccess(profileImage);
4747
}
4848

4949
}

src/main/java/com/memesphere/domain/image/service/ProfileService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.memesphere.domain.image.service;
22

33
import com.memesphere.domain.user.entity.User;
4-
import com.memesphere.domain.user.repository.UserRepository;
54
import com.memesphere.global.apipayload.code.status.ErrorStatus;
65
import com.memesphere.global.apipayload.exception.GeneralException;
76
import com.memesphere.global.jwt.CustomUserDetails;

src/main/java/com/memesphere/domain/user/dto/request/SignUpRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class SignUpRequest {
3030
@Schema(description = "사용자 생년월일", example = "20001010")
3131
String birth;
3232

33+
@NotEmpty
3334
@Schema(description = "프로필 이미지", example = "http://umc..jpg")
3435
String profileImage;
3536
}

0 commit comments

Comments
 (0)