Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")

// Redis 의존성
// implementation ("org.springframework.boot:spring-boot-starter-data-redis")
implementation ("org.springframework.boot:spring-boot-starter-data-redis")

//무중단 배포 의존성 추가 ( get 요청 )
implementation("org.springframework.boot:spring-boot-starter-actuator")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public ResponseEntity<PostDetailResponseDto> getPostById(@PathVariable("postId")

// 조회수 업데이트

// popularPostService.increasePopularity(postId, post.getMainCategory().getId());
popularPostService.increasePopularity(postId, post.getMainCategory().getId());

String mainCategory = post.getMainCategory() != null ? post.getMainCategory().getName() : "기본 카테고리";
String category = post.getCategory() != null ? post.getCategory().getName() : "기본 서브 카테고리";
Expand All @@ -136,8 +136,6 @@ public ResponseEntity<PostDetailResponseDto> getPostById(@PathVariable("postId")
// .toList() : Collections.emptyList();




PostDetailResponseDto response = PostDetailResponseDto.builder()
.postId(post.getId())
.title(post.getTitle())
Expand Down
Loading