Skip to content

Commit

Permalink
Merge pull request #145 from dd-jiyun/main
Browse files Browse the repository at this point in the history
쑰회수 μˆ˜μ •
  • Loading branch information
dd-jiyun authored Mar 5, 2024
2 parents f5d5bb4 + a065a5d commit a47e3be
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 @@ -72,9 +72,9 @@ public ResponseEntity<Page<QuestionDTO.Response>> getAllQuestions(@RequestParam(
@ApiResponse(responseCode = "404", description = "μ§ˆλ¬Έμ„ 찾을 수 μ—†μŒ")
})
public ResponseEntity<QuestionDTO.Response> getQuestionById(Principal principal,
@PathVariable("postId") Long postId) {
@PathVariable Long postId) {
QuestionDTO.Response question = questionService.findById(principal, postId);
return ResponseEntity.ok(question);
return new ResponseEntity<>(question, HttpStatus.OK);
}

@GetMapping("/category/{category}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public void countViews(User user, Question question) {
}
}


public static long calculateTimeUntilMidnight() {
LocalDateTime now = LocalDateTime.now();
LocalDateTime midnight = now.truncatedTo(ChronoUnit.DAYS).plusDays(1);
Expand Down

0 comments on commit a47e3be

Please sign in to comment.