Skip to content

Commit a14bfe7

Browse files
committed
feat: 자신의 프로필 사진 수정시 사진 싱크로율 업데이트(#90)
- 새로운 사진 업로드시 사진 싱크로율도 갱신 필요 - 사진 업로드 이후 싱크로율 갱신하는 로직 추가
1 parent de98fa7 commit a14bfe7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

be/src/main/java/yeonba/be/mypage/service/MyPageService.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,14 @@ private void validateBounds(Integer lowerBound, Integer upperBound) {
178178
}
179179
}
180180

181-
@Transactional(readOnly = true)
181+
@Transactional
182182
public void updateProfilePhotos(long userId, UserUpdateProfilePhotoRequest request) {
183183

184184
User user = userQuery.findById(userId);
185+
186+
// 사진 업로드 및 사진 싱크로율 업데이트
185187
s3Service.uploadProfilePhotos(request.getProfilePhotos(), user);
188+
user.updatePhotoSyncRate(request.getPhotoSyncRate());
186189
}
187190

188191
public BlockedUsersResponse getBlockedUsers(long userId) {

0 commit comments

Comments
 (0)