Skip to content

Commit e2201a4

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents e6e412d + a526064 commit e2201a4

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

blog-service-deployment.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
containers:
1717
- name: blog-service
1818
image: msj9965/alog-blog:main
19+
imagePullPolicy: Always
1920
ports:
2021
- containerPort: 8030
2122
env:
@@ -79,4 +80,9 @@ spec:
7980
valueFrom:
8081
secretKeyRef:
8182
name: blog-app-secret
82-
key: FEIGN_MATCHING_SERVICE_URL
83+
key: FEIGN_MATCHING_SERVICE_URL
84+
- name: KAFKA_BOOTSTRAP_SERVERS
85+
valueFrom:
86+
secretKeyRef:
87+
name: blog-app-secret
88+
key: KAFKA_BOOTSTRAP_SERVERS

src/main/java/com/gucci/blog_service/comment/repository/CommentRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
public interface CommentRepository extends JpaRepository<Comment, Long> {
1010
List<Comment> findAllByPost(Post post);
11-
List<Comment> findAllByUserId(Long userId);
11+
List<Comment> findAllByPostAndIsDeleted(Post post, Boolean isDeleted);
1212
}

src/main/java/com/gucci/blog_service/comment/service/CommentRefService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class CommentRefService {
1515
private final CommentRepository commentRepository;
1616

1717
public Integer getCommentCount(Post post) {
18-
List<Comment> comments = commentRepository.findAllByPost(post);
18+
List<Comment> comments = commentRepository.findAllByPostAndIsDeleted(post, false);
1919
return comments.size();
2020
}
2121

src/main/java/com/gucci/blog_service/healthcheck/HealthCheckController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public String healthCheck() {
1919

2020
@GetMapping("/test")
2121
public String test() {
22-
return "Blog Service Test Endpoint is working!!";
22+
return "Blog Service Test Endpoint is working!!!";
2323
}
2424
}

0 commit comments

Comments
 (0)