Skip to content

Commit

Permalink
Merge pull request #680 from bounswe/main
Browse files Browse the repository at this point in the history
Deploying get-post-endpoint change
  • Loading branch information
halisbal authored Nov 14, 2023
2 parents d5f8989 + fd76b7e commit df03ad3
Show file tree
Hide file tree
Showing 44 changed files with 2,632 additions and 1,945 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class CommentReplyResponseDto {

private Boolean isEdited;

private Boolean isDeleted;

private int overallVote; // overallVote = # of upvote - # of downvote

private int voteCount; // voteCount = # of upvote + # of downvote
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class GetPostCommentsResponseDto {

private Boolean isEdited;

private Boolean isDeleted;

private int overallVote; // overallVote = # of upvote - # of downvote

private int voteCount; // voteCount = # of upvote + # of downvote
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private GetPostCommentsResponseDto convertToCommentDto(Comment comment) {

User commenterObject = commenter.orElse(null);
return new GetPostCommentsResponseDto(comment.getId(), comment.getCommentContent(), commenterObject,
comment.getPost(), comment.getLastEditedAt(), comment.getCreatedAt(), isEdited, comment.getOverallVote(),
comment.getPost(), comment.getLastEditedAt(), comment.getCreatedAt(), isEdited, comment.getIsDeleted(), comment.getOverallVote(),
comment.getVoteCount(), new ArrayList<>());
}

Expand All @@ -182,7 +182,7 @@ private CommentReplyResponseDto convertToReplyDto(Comment comment) {

User commenterObject = commenter.orElse(null);
return new CommentReplyResponseDto(comment.getId(), comment.getCommentContent(), commenterObject,
comment.getPost(), comment.getLastEditedAt(), comment.getCreatedAt(), isEdited, comment.getOverallVote(),
comment.getPost(), comment.getLastEditedAt(), comment.getCreatedAt(), isEdited, comment.getIsDeleted(), comment.getOverallVote(),
comment.getVoteCount());
}

Expand Down
6 changes: 5 additions & 1 deletion app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
"@ant-design/icons": "^5.2.6",
"@types/js-cookie": "^3.0.5",
"antd": "^5.10.2",
"clsx": "^2.0.0",
"axios": "^1.6.0",
"clsx": "^2.0.0",
"js-cookie": "^3.0.5",
"modern-normalize": "^2.0.0",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-datepicker": "^4.21.0",
"react-dom": "^18.2.0",
"react-query": "^3.39.3",
"react-router-dom": "^6.17.0",
Expand All @@ -26,6 +28,8 @@
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-color": "^3.0.10",
"@types/react-datepicker": "^4.19.3",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
Expand Down
Loading

0 comments on commit df03ad3

Please sign in to comment.