Skip to content

Commit 807718a

Browse files
Format code
1 parent 61f935b commit 807718a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/app/fyreplace/api/endpoints/PostsEndpoint.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public Iterable<Post> listPosts(
7575
final var sorting = Post.sorting().direction(direction);
7676
final var query =
7777
switch (type) {
78-
case SUBSCRIBED_TO -> "from Post p where (select count(*) from Subscription where user = ?1 and post.id = p.id) > 0";
78+
case SUBSCRIBED_TO ->
79+
"from Post p where (select count(*) from Subscription where user = ?1 and post.id = p.id) > 0";
7980
case PUBLISHED -> "author = ?1 and published = true";
8081
case DRAFTS -> "author = ?1 and published = false";
8182
};

0 commit comments

Comments
 (0)