Skip to content

Commit

Permalink
Fix endpoint naming
Browse files Browse the repository at this point in the history
  • Loading branch information
EnesBaserr committed Dec 7, 2024
1 parent b0edc4b commit 1823d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class GetQuestionDetailsResponseDto {
@Builder.Default
private boolean bookmarked = false;
@Builder.Default
private DifficultyLevel lastRatedDifficulty =null;
private DifficultyLevel selfDifficultyVote =null;
private Long easyCount;
private Long mediumCount;
private Long hardCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public GetQuestionDetailsResponseDto getQuestion(Long id) throws NoSuchElementEx
.title(question.getTitle())
.content(question.getQuestionBody())
.difficulty(question.getDifficulty())
.lastRatedDifficulty(lastRatedDifficulty)
.selfDifficultyVote(lastRatedDifficulty)
.likeCount(question.getUpvoteCount())
.dislikeCount(question.getDownvoteCount())
.commentCount(question.getCommentCount())
Expand All @@ -124,7 +124,6 @@ public GetQuestionDetailsResponseDto getQuestion(Long id) throws NoSuchElementEx
.easyCount(easyCount)
.mediumCount(mediumCount)
.hardCount(hardCount)
.lastRatedDifficulty(lastRatedDifficulty)
.createdAt(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(question.getCreatedAt()))
.updatedAt(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(question.getUpdatedAt()))
.author(AuthorDto.builder()
Expand Down

0 comments on commit 1823d6a

Please sign in to comment.