From f19f2b4c9a878a0a33606fc49d830505c2381874 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 27 Apr 2023 08:08:45 +0100 Subject: [PATCH] Fix for subscriptions not working after hibernate update. --- .../java/me/kavin/piped/server/handlers/auth/FeedHandlers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java b/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java index d867d68..f3884a6 100644 --- a/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java @@ -424,7 +424,7 @@ public class FeedHandlers { CriteriaBuilder cb = s.getCriteriaBuilder(); var query = cb.createQuery(Channel.class); var root = query.from(Channel.class); - var subquery = query.subquery(User.class); + var subquery = query.subquery(String.class); var subroot = subquery.from(User.class); subquery.select(subroot.get("subscribed_ids"))