Skip to content

Commit

Permalink
[FIX] preSignedUrl 발급 인자 수정 및 해시태그 요구사항 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CokeLee777 committed Dec 1, 2023
1 parent d104b87 commit f953d93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class CreatePostRequest {
private Double weight;

@NotEmpty(message = "해시태그는 최소 1개 이상 입력해야 합니다.")
@Size(min = 1, max = 10, message = "해시태그는 최소 1글자 이상 최대 10글자 이하로 입력 가능합니다.")
private List<String> hashTagNames;

@NotBlank(message = "썸네일 이미지를 등록해주세요.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public class UpdateHashTagRequest {
private Long id;

@NotBlank(message = "해시태그를 입력해주세요.")
@Size(min = 1, max = 20, message = "해시태그 이름은 최소 1글자 이상 최대 20글자 이하로 입력 가능합니다.")
@Size(min = 1, max = 10, message = "해시태그는 최소 1글자 이상 최대 10글자 이하로 입력 가능합니다.")
private String name;
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public CreatePostResponse createPost(Long memberId, CreatePostRequest createPost

postRepository.save(post);

String thumbnailImgPreSignedUrl = s3Service.getPreSignedUrl(STATIC_IMG_BUCKET, thumbnailImgUrl);
String imgPreSignedUrl = s3Service.getPreSignedUrl(STATIC_IMG_BUCKET, imgUrl);
String thumbnailImgPreSignedUrl = s3Service.getPreSignedUrl(STATIC_IMG_BUCKET, thumbnailImgUrl.substring(1));
String imgPreSignedUrl = s3Service.getPreSignedUrl(STATIC_IMG_BUCKET, imgUrl.substring(1));

return CreatePostResponse.builder()
.thumbnailImgPreSignedUrl(thumbnailImgPreSignedUrl)
Expand Down

0 comments on commit f953d93

Please sign in to comment.