Skip to content

Commit

Permalink
Merge pull request #110 from codestates-seb/feat_be_postimage
Browse files Browse the repository at this point in the history
feat: postReponseDto 수정 #78
  • Loading branch information
Sangyoo authored Jan 26, 2023
2 parents 0664a53 + 9e8e2c3 commit b62f226
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public static class Home {
private Long postId;
private Long memberId;
private String username;
private String picture;
private String memberPicture;
private String pictureUrl;
private int views;
private int likes;
private String postTitle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ default List<PostResponseDto.Home> postListToPostHomeResponseDtoList(List<Post>
.postId(post.getPostId())
.memberId(post.getMember().getMemberId())
.username(post.getMember().getUsername())
.picture(post.getMember().getPicture())
.memberPicture(post.getMember().getPicture())
.pictureUrl(post.getPostImages().get(0).getPostImageUrl())
.views(post.getViews())
.likes(post.getLikes())
.postTitle(post.getPostTitle())
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spring:
profiles:
active: test
active: local

0 comments on commit b62f226

Please sign in to comment.