We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f935b commit 807718aCopy full SHA for 807718a
src/main/java/app/fyreplace/api/endpoints/PostsEndpoint.java
@@ -75,7 +75,8 @@ public Iterable<Post> listPosts(
75
final var sorting = Post.sorting().direction(direction);
76
final var query =
77
switch (type) {
78
- case SUBSCRIBED_TO -> "from Post p where (select count(*) from Subscription where user = ?1 and post.id = p.id) > 0";
+ case SUBSCRIBED_TO ->
79
+ "from Post p where (select count(*) from Subscription where user = ?1 and post.id = p.id) > 0";
80
case PUBLISHED -> "author = ?1 and published = true";
81
case DRAFTS -> "author = ?1 and published = false";
82
};
0 commit comments