From ac52e7f677433f2e7d2af0eea634b7d8e39db9dc Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Sun, 22 Mar 2020 22:15:52 +0800 Subject: [PATCH] fix: #703 (#705) --- .../java/run/halo/app/service/impl/StatisticServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/run/halo/app/service/impl/StatisticServiceImpl.java b/src/main/java/run/halo/app/service/impl/StatisticServiceImpl.java index ddeb96cdd..7120b16d3 100644 --- a/src/main/java/run/halo/app/service/impl/StatisticServiceImpl.java +++ b/src/main/java/run/halo/app/service/impl/StatisticServiceImpl.java @@ -68,7 +68,7 @@ public class StatisticServiceImpl implements StatisticService { @Override public StatisticDTO getStatistic() { StatisticDTO statisticDTO = new StatisticDTO(); - statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED) + sheetService.countByStatus(PostStatus.PUBLISHED)); + statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED)); // Handle comment count long postCommentCount = postCommentService.countByStatus(CommentStatus.PUBLISHED);