diff --git a/src/main/java/com/potatocake/everymoment/service/FriendDiarySpecification.java b/src/main/java/com/potatocake/everymoment/service/FriendDiarySpecification.java index 34854d7..a075cba 100644 --- a/src/main/java/com/potatocake/everymoment/service/FriendDiarySpecification.java +++ b/src/main/java/com/potatocake/everymoment/service/FriendDiarySpecification.java @@ -44,7 +44,7 @@ public static Specification filterDiaries( builder.between(root.get("createAt"), from, until.plusDays(1))); } - predicate = builder.and(predicate, builder.isTrue(root.get("public"))); + predicate = builder.and(predicate, builder.isTrue(root.get("isPublic"))); return predicate; };