From 748233adc4597b2db9cbf86a4b0b0aef4fe27923 Mon Sep 17 00:00:00 2001 From: johnniang Date: Sun, 12 May 2019 00:18:09 +0800 Subject: [PATCH] Fix issue#149 --- .../java/run/halo/app/service/impl/PostCategoryServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java b/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java index 47c0939f8..b8b717623 100644 --- a/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java +++ b/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java @@ -100,7 +100,7 @@ public class PostCategoryServiceImpl extends AbstractCrudService postIds = postCategoryRepository.findAllCategoryIdsByPostId(categoryId); + Set postIds = postCategoryRepository.findAllPostIdsByCategoryId(categoryId); return postRepository.findAllByIdIn(postIds, pageable); }